summaryrefslogtreecommitdiff
path: root/src/miinaharava/bots
diff options
context:
space:
mode:
authorAineopintojen-harjoitustyo-Algoritmit-j <github-hy-tiralabra@v.hix.fi>2024-02-18 17:24:14 +0200
committerAineopintojen-harjoitustyo-Algoritmit-j <github-hy-tiralabra@v.hix.fi>2024-02-18 17:24:14 +0200
commitf8452c313ca78e5f04714331c4a222e8aed53805 (patch)
tree2bd492d332e5867b6875d560ce97072a27e3523f /src/miinaharava/bots
parent5e69623d022ecd747e20ca29e891d221c9ccbbab (diff)
Bot doesn't need to know cursor coordinates.
Diffstat (limited to 'src/miinaharava/bots')
-rw-r--r--src/miinaharava/bots/bot.py4
1 files changed, 2 insertions, 2 deletions
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. """