Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/dominoactivity.py
diff options
context:
space:
mode:
Diffstat (limited to 'dominoactivity.py')
-rw-r--r--dominoactivity.py10
1 files changed, 6 insertions, 4 deletions
diff --git a/dominoactivity.py b/dominoactivity.py
index 28f5978..b417ee9 100644
--- a/dominoactivity.py
+++ b/dominoactivity.py
@@ -258,6 +258,8 @@ class Domino(activity.Activity):
for player in self.game.players:
pieces = player.get_pieces()
+ # the first player have the pieces flipped
+ flipped = player == self.game.players[0]
# TODO: replace for m (m is needed below)
for m in range(0, len(pieces)):
piece = pieces[m]
@@ -265,12 +267,12 @@ class Domino(activity.Activity):
if self.game.game_state != \
DominoGame.GAME_STATE_LOCATE_PIECE \
or (m != self.game.ui_player.order_piece_selected):
- piece.draw(surf_ctx, False)
+ piece.draw(surf_ctx, False, flipped)
# to debug
- self.game.table.show_values(surf_ctx, self.game.values)
- self.game.table.mark_tile(surf_ctx, self.game.start)
- self.game.table.mark_tile(surf_ctx, self.game.end)
+ #self.game.table.show_values(surf_ctx, self.game.values)
+ #self.game.table.mark_tile(surf_ctx, self.game.start)
+ #self.game.table.mark_tile(surf_ctx, self.game.end)
def _start_game(self, button):
if self.show_scores: