summaryrefslogtreecommitdiff
path: root/game
diff options
context:
space:
mode:
authorAineopintojen-harjoitustyo-Algoritmit-j <github-hy-tiralabra@v.hix.fi>2024-01-17 13:16:56 +0200
committerAineopintojen-harjoitustyo-Algoritmit-j <github-hy-tiralabra@v.hix.fi>2024-01-17 13:16:56 +0200
commit9acab08eeede3a3c065057d4466ccaef2035b55d (patch)
tree9145cf28a8dfe2e4dc5eb0aea587bdd35c7ac1ca /game
parent823877510422f6ce2952de5cc40edd0d62d813e4 (diff)
Making board compatible with non square playing areas like expert 30x16.
Diffstat (limited to 'game')
-rw-r--r--game/game.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/game/game.py b/game/game.py
index 5ccbab9..4420aed 100644
--- a/game/game.py
+++ b/game/game.py
@@ -6,7 +6,10 @@ class Game:
def __init__(self, board, ui):
self.board = board
self.ui = ui
- self.x, self.y = self.ui.game_begin(self.board.size)
+ self.x, self.y = self.ui.game_begin(
+ self.board.get_width(),
+ self.board.get_height()
+ )
def __del__(self):