Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/game.py
diff options
context:
space:
mode:
authorWalter Bender <walter.bender@gmail.com>2011-03-25 15:04:04 (GMT)
committer Walter Bender <walter.bender@gmail.com>2011-03-25 15:04:04 (GMT)
commitccd6f8eb39c06603450c594a8de15a868710a822 (patch)
tree772efa75829d5abdf406b886210c33cda2969a2e /game.py
parentf27c2d874f082082c5f39c492f1f3013a5de7429 (diff)
fixed end game for robot
Diffstat (limited to 'game.py')
-rw-r--r--game.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/game.py b/game.py
index 38be970..8195f68 100644
--- a/game.py
+++ b/game.py
@@ -255,7 +255,8 @@ class Game():
def _robot_turn(self):
self._robot_play()
self.show_connected_tiles()
- self.its_my_turn()
+ if not self._waiting_for_robot:
+ self.its_my_turn()
def its_their_turn(self, nick):
# It is someone else's turn.
@@ -495,7 +496,6 @@ class Game():
x, y = self.hands[ROBOT_HAND].hand_to_xy(i)
self.hands[ROBOT_HAND].hand[i].spr.move(
(self.grid.left_hand + self.grid.xinc, y))
- self._waiting_for_robot = False
self._game_over(_('Robot unable to play'))
def _try_placement(self, tile, i):