[iagno] Comment for when there's no move.



commit 26fbd47c90d9fcfb103ab0c26b58677a9e97a9da
Author: Arnaud Bonatti <arnaud bonatti gmail com>
Date:   Wed Aug 27 06:47:52 2014 +0200

    Comment for when there's no move.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=735412

 src/computer-player.vala |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)
---
diff --git a/src/computer-player.vala b/src/computer-player.vala
index 7894a2a..9982f1b 100644
--- a/src/computer-player.vala
+++ b/src/computer-player.vala
@@ -129,9 +129,12 @@ public class ComputerPlayer : Object
             }
         }
 
-        /* If no moves then pass */
         if (moves == null)
         {
+            /* The move.ntiles = 0 is used next to know we have to pass.
+             * The move.x = move.y = 0 is never used: move.x, move.y, move_x & move_y
+             * are only used at first iteration… and the game passes if there’s no move.
+             */
             var move = PossibleMove (0, 0, 0);
             moves.append (move);
         }


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