diff options
author | Aineopintojen-harjoitustyo-Algoritmit-j <github-hy-tiralabra@v.hix.fi> | 2024-01-14 16:02:12 +0200 |
---|---|---|
committer | Aineopintojen-harjoitustyo-Algoritmit-j <github-hy-tiralabra@v.hix.fi> | 2024-01-14 16:02:12 +0200 |
commit | 899d0997a6badae6535e9f69e0f6d70f3a272578 (patch) | |
tree | 05edf2028de4fa4294e5bcb8fd6c81bbdf849000 /bots/bot.py | |
parent | 53eea87fe65c5c4f063664c424d4b49176a27984 (diff) |
Adding the idiot bot for giving idiot hints.
Diffstat (limited to 'bots/bot.py')
-rw-r--r-- | bots/bot.py | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/bots/bot.py b/bots/bot.py new file mode 100644 index 0000000..1b7fedd --- /dev/null +++ b/bots/bot.py @@ -0,0 +1,14 @@ +""" bots/bot.py - bottien kantaisä """ +from tui.static import Action + +class Bot(): + """ Bot - perusluokka perittäväksi """ + # pylint: disable = too-few-public-methods + def __init__(self): + self.hints = 0 + + def hint(self, matrix, x, y): + """ antaa vinkin. tässä tapauksessa ei mitään """ + # pylint: disable = unused-argument + self.hints += 1 + return Action.NOOP, x, y |