diff options
author | Aineopintojen-harjoitustyo-Algoritmit-j <github-hy-tiralabra@v.hix.fi> | 2024-01-14 14:56:54 +0200 |
---|---|---|
committer | Aineopintojen-harjoitustyo-Algoritmit-j <github-hy-tiralabra@v.hix.fi> | 2024-01-14 14:56:54 +0200 |
commit | 3dd13c9ed2fc57c525ddf0dd5c7d130229087a16 (patch) | |
tree | 3b3254fabd14253977cadf1fc4c4d736b311b92c /game | |
parent | 2b98f7c66facfe71bf91aebc0d8cf3978e88303f (diff) |
Making bomb and safe marking to actually do something.
Diffstat (limited to 'game')
-rw-r--r-- | game/game.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/game/game.py b/game/game.py index d46d97b..0a36b0a 100644 --- a/game/game.py +++ b/game/game.py @@ -34,4 +34,8 @@ class Game: return False case Action.FLAG: self.board.flag(self.x, self.y) + case Action.BOMB: + self.board.flag(self.x, self.y, 11) + case Action.SAFE: + self.board.flag(self.x, self.y, 12) return True |