From a947010229c81872a28552bddc37a4761c3a575a Mon Sep 17 00:00:00 2001 From: Aineopintojen-harjoitustyo-Algoritmit-j Date: Sun, 18 Feb 2024 13:39:35 +0200 Subject: Refactor & comment bots. --- src/miinaharava/bots/dssp.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/miinaharava/bots/dssp.py') 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) -- cgit v1.2.3