Don't hardcode the initial cursor position
authorStefano Rivera <stefano@rivera.za.net>
Sat, 17 May 2014 17:08:10 +0000 (19:08 +0200)
committerStefano Rivera <stefano@rivera.za.net>
Sat, 17 May 2014 17:08:28 +0000 (19:08 +0200)
naja/widgets/board.py

index b168c6b35ec3a706ad279285a9a99bf6daa65eea..32fb5af8c52a3849e110c55a9eb90a5ee9caa24c 100644 (file)
@@ -19,7 +19,7 @@ class BoardWidget(Widget):
         super(BoardWidget, self).__init__(pos, BOARD_SIZE)
         self.info = info
         self.state = state
-        self.card_pos = (2, 2)
+        self.card_pos = state.player.position
         self._tiles = []
         self.legal = False
         for y in range(0, 5):