[iagno] Don't move extra fast on the last turn



commit f0ac5479466f5c00e138aa15e2904740915848a9
Author: Michael Catanzaro <mcatanzaro gnome org>
Date:   Wed Sep 24 22:36:11 2014 -0500

    Don't move extra fast on the last turn
    
    I added this because I thought it would look weird for the AI to sit and
    think about what its next move should be if there is only one unfilled
    spot on the board, but this is so fast it's difficult to follow. There's
    really no need to special-case anything; it's only two seconds.

 src/iagno.vala |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/iagno.vala b/src/iagno.vala
index f1afa6e..de8235d 100644
--- a/src/iagno.vala
+++ b/src/iagno.vala
@@ -445,7 +445,7 @@ public class Iagno : Gtk.Application
          */
         if (game.current_color != player_one && computer != null)
         {
-            if (game.n_tiles == 63 || fast_mode)
+            if (fast_mode)
                 computer.move_async.begin (QUICK_MOVE_DELAY);
             else
                 computer.move_async.begin (SLOW_MOVE_DELAY);


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