diff options
author | Aineopintojen-harjoitustyo-Algoritmit-j <github-hy-tiralabra@v.hix.fi> | 2024-01-17 10:51:08 +0200 |
---|---|---|
committer | Aineopintojen-harjoitustyo-Algoritmit-j <github-hy-tiralabra@v.hix.fi> | 2024-01-17 10:51:08 +0200 |
commit | 823877510422f6ce2952de5cc40edd0d62d813e4 (patch) | |
tree | 1e68d682a3f59dea0a87aa83c9bb1c73aeb2badb /bots/idiot.py | |
parent | 899d0997a6badae6535e9f69e0f6d70f3a272578 (diff) |
Adding BadBot for hinting.
Diffstat (limited to 'bots/idiot.py')
-rw-r--r-- | bots/idiot.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/bots/idiot.py b/bots/idiot.py index 4f1f9f4..200d690 100644 --- a/bots/idiot.py +++ b/bots/idiot.py @@ -5,13 +5,13 @@ class IdiotBot(Bot): """ IdiotBot - merkistsee kaikki turvallisiksi avata """ # pylint: disable = too-few-public-methods - def hint(self, matrix, x, y): + def hint(self, matrix, cursor_x, cursor_y): """ merkitsee jonkin ruudun """ - super().hint(matrix, x, y) + 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]==10: + if matrix[tx][ty]==12: return(Action.SAFE, tx, ty) - return (Action.NOOP, x, y) + return (Action.NOOP, cursor_x, cursor_y)
\ No newline at end of file |