summaryrefslogtreecommitdiff
path: root/game/game.py
diff options
context:
space:
mode:
authorAineopintojen-harjoitustyo-Algoritmit-j <github-hy-tiralabra@v.hix.fi>2024-01-14 13:47:35 +0200
committerAineopintojen-harjoitustyo-Algoritmit-j <github-hy-tiralabra@v.hix.fi>2024-01-14 13:47:35 +0200
commite56c2153add98361ea7909789b195d3a702f85bb (patch)
treefd7d9691a4b62f44b2c60f5cf62f006a9476124f /game/game.py
parent822d89c50a70277186f5c845e4341236548c16b7 (diff)
Moving things around and adding fouth flag option for bot suggestions.
Diffstat (limited to 'game/game.py')
-rw-r--r--game/game.py4
1 files changed, 2 insertions, 2 deletions
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