From de4daa463d75403144ac63d3cd94aebf74fa0cb2 Mon Sep 17 00:00:00 2001 From: Aineopintojen-harjoitustyo-Algoritmit-j Date: Tue, 30 Jan 2024 14:27:28 +0200 Subject: Renaming bombs to mines. --- bots/simple.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'bots/simple.py') diff --git a/bots/simple.py b/bots/simple.py index cb3d25c..54e2d05 100644 --- a/bots/simple.py +++ b/bots/simple.py @@ -12,13 +12,13 @@ class SimpleBot(Bot): c = self.get_value(tile) n = self.get_neighbours(tile) self.remove_number_tiles(n) - c -= self.remove_bomb_tiles(n) + c -= self.remove_mine_tiles(n) if c == 0: for safe in n: self.safe_tiles.add(safe) if c == len(n): - for bomb in n: - self.bomb_tiles.add(bomb) + for mine in n: + self.mine_tiles.add(mine) return self.saved_hints() def lucky_guess(self): -- cgit v1.2.3