summaryrefslogtreecommitdiff
path: root/bots/idiot.py
diff options
context:
space:
mode:
authorAineopintojen-harjoitustyo-Algoritmit-j <github-hy-tiralabra@v.hix.fi>2024-01-29 02:34:32 +0200
committerAineopintojen-harjoitustyo-Algoritmit-j <github-hy-tiralabra@v.hix.fi>2024-01-29 02:34:32 +0200
commite591d15abc4943a74c39f0fcab065213828a1514 (patch)
treebc22931abb08d8c213ba4eb81a85298d69e88890 /bots/idiot.py
parent0c034e6fbae0833f8524caf223deab450e9bb1b4 (diff)
Updating too much. Renewed bots and tui.
Diffstat (limited to 'bots/idiot.py')
-rw-r--r--bots/idiot.py18
1 files changed, 0 insertions, 18 deletions
diff --git a/bots/idiot.py b/bots/idiot.py
deleted file mode 100644
index 933eee9..0000000
--- a/bots/idiot.py
+++ /dev/null
@@ -1,18 +0,0 @@
-""" bots/idiot.py - se ensimmäinen botti joka tekee kaiken väärin """
-from tui import Action
-from .bot import Bot
-
-class IdiotBot(Bot):
- """ IdiotBot - merkistsee kaikki turvallisiksi avata """
- # pylint: disable = too-few-public-methods
-
- def hint(self, matrix, cursor_x, cursor_y):
- """ merkitsee jonkin ruudun """
- super().hint(matrix, cursor_x, cursor_y)
- # pylint: disable = consider-using-enumerate
- for ty in range(len(matrix[0])):
- for tx in range(len(matrix)):
- if matrix[tx][ty]==12:
- return(Action.SAFE, tx, ty)
- return (Action.NOOP, cursor_x, cursor_y)
- \ No newline at end of file