From 9acab08eeede3a3c065057d4466ccaef2035b55d Mon Sep 17 00:00:00 2001 From: Aineopintojen-harjoitustyo-Algoritmit-j Date: Wed, 17 Jan 2024 13:16:56 +0200 Subject: Making board compatible with non square playing areas like expert 30x16. --- game/game.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'game/game.py') 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): -- cgit v1.2.3