From f8452c313ca78e5f04714331c4a222e8aed53805 Mon Sep 17 00:00:00 2001 From: Aineopintojen-harjoitustyo-Algoritmit-j Date: Sun, 18 Feb 2024 17:24:14 +0200 Subject: Bot doesn't need to know cursor coordinates. --- src/miinaharava/bots/bot.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/miinaharava/bots') diff --git a/src/miinaharava/bots/bot.py b/src/miinaharava/bots/bot.py index b00f9a6..15dbb8e 100644 --- a/src/miinaharava/bots/bot.py +++ b/src/miinaharava/bots/bot.py @@ -40,7 +40,7 @@ class Bot(): tiles.remove(tile) return self.safe_tiles or self.mine_tiles - def hint(self, matrix, cursor_x, cursor_y): + def hint(self, matrix): """ Kysyy tekoälyltä vihjettä. Joko palauttaa vihjeen, arvauksen tai vain nykyisen paikan ilman toimintoa. """ self.matrix = matrix @@ -50,7 +50,7 @@ class Bot(): for step in (self.saved_hints, self.search, ok_to_guess ): if step(): return self.get_hint_from_list() - return Action.NOOP, cursor_x, cursor_y + return Action.NOOP, 0, 0 def get_dimensions(self): """ Apufunktio joka palauttaa pelilaudan mitat. """ -- cgit v1.2.3