[gnome-chess] Allow engines 30 seconds to move



commit 54dc1e95ebbdccddf7c4451b300905c6c7493258
Author: Michael Catanzaro <mcatanzaro gnome org>
Date:   Tue Apr 6 15:47:28 2021 -0500

    Allow engines 30 seconds to move
    
    This matches our behavior from 3.38. It mitigates, but does not fix, #57.

 src/gnome-chess.vala | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/gnome-chess.vala b/src/gnome-chess.vala
index a587a79..2792341 100644
--- a/src/gnome-chess.vala
+++ b/src/gnome-chess.vala
@@ -676,9 +676,9 @@ Copyright © 2015–2016 Sahil Sareen""";
         if (pgn_game.white_ai != null && game.current_player.color == Color.WHITE ||
             pgn_game.black_ai != null && game.current_player.color == Color.BLACK)
         {
-            engine_timeout_source = Timeout.add_seconds (10, () => {
+            engine_timeout_source = Timeout.add_seconds (30, () => {
                 engine_timeout_source = 0;
-                warning ("Engine did not move for 10 seconds! Game over.");
+                warning ("Engine did not move for 30 seconds! Game over.");
                 engine_error_cb (opponent_engine);
                 return Source.REMOVE;
             });


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]