diff options
author | Aineopintojen-harjoitustyo-Algoritmit-j <github-hy-tiralabra@v.hix.fi> | 2024-01-27 12:36:02 +0200 |
---|---|---|
committer | Aineopintojen-harjoitustyo-Algoritmit-j <github-hy-tiralabra@v.hix.fi> | 2024-01-27 12:36:02 +0200 |
commit | d68d1a33f52ad9ddeb97c6e45f1e66cdf27c67f5 (patch) | |
tree | 5ed95a7e5b9a427fc4c4791e21a92fb88fbf7ce7 /bots/bot.py | |
parent | c0a0bb30e03be9c47b99d5da848e29a747e9af66 (diff) |
Implementing uncertain moves as bot option.
Diffstat (limited to 'bots/bot.py')
-rw-r--r-- | bots/bot.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/bots/bot.py b/bots/bot.py index a097a8d..5ad0bd2 100644 --- a/bots/bot.py +++ b/bots/bot.py @@ -3,7 +3,8 @@ from tui import Action class Bot(): """ Bot - perusluokka perittäväksi """ - def __init__(self): + def __init__(self, **opts): + self.uncertain = opts['uncertain'] if 'uncertain' in opts else False self.hints = 0 def neighbours(self,dx,dy,x,y): |