summaryrefslogtreecommitdiff
path: root/bots/simple.py
diff options
context:
space:
mode:
authorAineopintojen-harjoitustyo-Algoritmit-j <github-hy-tiralabra@v.hix.fi>2024-01-30 14:27:28 +0200
committerAineopintojen-harjoitustyo-Algoritmit-j <github-hy-tiralabra@v.hix.fi>2024-01-30 14:27:28 +0200
commitde4daa463d75403144ac63d3cd94aebf74fa0cb2 (patch)
tree943cfb0a53c98a0c2573fb748af29973e3642a39 /bots/simple.py
parent6d62f8c23e8ab76a2034dde08cff8302c9989fdc (diff)
Renaming bombs to mines.
Diffstat (limited to 'bots/simple.py')
-rw-r--r--bots/simple.py6
1 files changed, 3 insertions, 3 deletions
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):