From e56c2153add98361ea7909789b195d3a702f85bb Mon Sep 17 00:00:00 2001 From: Aineopintojen-harjoitustyo-Algoritmit-j Date: Sun, 14 Jan 2024 13:47:35 +0200 Subject: Moving things around and adding fouth flag option for bot suggestions. --- game/game.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'game') diff --git a/game/game.py b/game/game.py index 91c240f..d46d97b 100644 --- a/game/game.py +++ b/game/game.py @@ -24,7 +24,7 @@ class Game: return False case Action.OPEN: if self.board.get_mask(self.x, self.y): - if not self.board.make_guess(self.x, self.y): + if not self.board.guess(self.x, self.y): self.ui.game_over( self.board.get_view(), self.x, self.y ) @@ -33,5 +33,5 @@ class Game: self.ui.game_win(self.board.get_view(), self.x, self.y) return False case Action.FLAG: - self.board.flag_tile(self.x, self.y) + self.board.flag(self.x, self.y) return True -- cgit v1.2.3