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/bot.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/miinaharava/bots/bot.py') diff --git a/src/miinaharava/bots/bot.py b/src/miinaharava/bots/bot.py index 81f24d4..cfeedce 100644 --- a/src/miinaharava/bots/bot.py +++ b/src/miinaharava/bots/bot.py @@ -75,7 +75,7 @@ class Bot(): """ Palauttaa kysytyn laatan tiedot. """ return self.matrix[tile[0]][tile[1]] - def remove_number_tiles(self, tiles): + def remove_known_safe_tiles(self, tiles): """ Poistaa vapaat, vapaaksi merkityt ja numerolaatat joukosta. """ for tile in list(tiles): if self.matrix[tile[0]][tile[1]] < Tile.FLAG_MINE: -- cgit v1.2.3