@@ -415,7 +415,7 @@ long make_move(piece_gen_t & gen)
415415
416416 // Control the percentage of moves that the engine makes a mistake on
417417 if (0 != game.options .mistakes ) {
418- if (random (100 ) <= game.options .mistakes ) {
418+ if (random (100 ) <= ( unsigned ) game.options .mistakes ) {
419419 gen.move .value -= gen.whites_turn ? +5000 : -5000 ;
420420 }
421421 }
@@ -441,7 +441,7 @@ long make_move(piece_gen_t & gen)
441441 direct_write (DEBUG2_PIN, LOW);
442442 }
443443
444- if ((0 == game.options .randskip ) || (random (100 ) > game.options .randskip )) {
444+ if ((0 == game.options .randskip ) || (random (100 ) > ( unsigned ) game.options .randskip )) {
445445 // Explore The Future! (plies)
446446 game.ply ++;
447447 game.turn = !game.turn ;
@@ -1130,6 +1130,9 @@ void show_game_options() {
11301130// Set all of the options for the game
11311131void set_game_options ()
11321132{
1133+ game.options .white_human = false ;
1134+ game.options .black_human = false ;
1135+
11331136 // Set game.options.profiling to True to disable output and profile the engine
11341137 game.options .profiling = False;
11351138 // game.options.profiling = True;
@@ -1239,7 +1242,7 @@ void set_game_options()
12391242// Display the statistics for the game and start another game.
12401243void setup ()
12411244{
1242- #if not ARDUINO_AVR_PROMICRO
1245+ #if not ARDUINO_AVR_PROMICRO && not TEENSYDUINO
12431246 // The baud rate we will be using
12441247 #if not ESP32
12451248 static long constexpr baud_rate = 1000000 ;
0 commit comments