diff options
author | Aineopintojen-harjoitustyo-Algoritmit-j <github-hy-tiralabra@v.hix.fi> | 2024-02-18 13:39:35 +0200 |
---|---|---|
committer | Aineopintojen-harjoitustyo-Algoritmit-j <github-hy-tiralabra@v.hix.fi> | 2024-02-18 13:39:35 +0200 |
commit | a947010229c81872a28552bddc37a4761c3a575a (patch) | |
tree | 45868bd8b5a6c7fe7a7a7045ac0fe41998c4ee89 /src/miinaharava/bots/dssp.py | |
parent | 024f743255a5335e0ff3448ab2ca799a74e538b4 (diff) |
Refactor & comment bots.
Diffstat (limited to 'src/miinaharava/bots/dssp.py')
-rw-r--r-- | src/miinaharava/bots/dssp.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/miinaharava/bots/dssp.py b/src/miinaharava/bots/dssp.py index 1815b49..769c616 100644 --- a/src/miinaharava/bots/dssp.py +++ b/src/miinaharava/bots/dssp.py @@ -24,8 +24,8 @@ class DSSPBot(SimpleBot): c2 = self.get_value(tile2) n1 = self.get_neighbours(tile1) n2 = self.get_neighbours(tile2) - self.remove_number_tiles(n1) - self.remove_number_tiles(n2) + self.remove_known_safe_tiles(n1) + self.remove_known_safe_tiles(n2) c1 -= self.remove_mine_tiles(n1) c2 -= self.remove_mine_tiles(n2) @@ -56,7 +56,7 @@ class DSSPBot(SimpleBot): for tile in tiles: n = self.get_neighbours(tile) c = self.get_value(tile) - self.remove_mine_tiles(n) - self.remove_number_tiles(n) + self.remove_known_safe_tiles(n) for ntile in n: heatmap[ntile] += c/len(n) |