From 3dd13c9ed2fc57c525ddf0dd5c7d130229087a16 Mon Sep 17 00:00:00 2001 From: Aineopintojen-harjoitustyo-Algoritmit-j Date: Sun, 14 Jan 2024 14:56:54 +0200 Subject: Making bomb and safe marking to actually do something. --- game/game.py | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'game') 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 -- cgit v1.2.3