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 /app.py | |
parent | c0a0bb30e03be9c47b99d5da848e29a747e9af66 (diff) |
Implementing uncertain moves as bot option.
Diffstat (limited to 'app.py')
-rw-r--r-- | app.py | 8 |
1 files changed, 5 insertions, 3 deletions
@@ -8,16 +8,18 @@ from bots import BadBot class App: """ App - Luokka pääohjelmalle""" def __init__(self, args=None): - level=Level.BEGINNER - ui_class=Tui + level = Level.BEGINNER + ui_class = Tui + uncertain = False if args: level = Level.EXPERT if args.expert else level level = Level.INTERMEDIATE if args.intermediate else level level = Level.BEGINNER if args.beginner else level ui_class = AutoTui if args.auto else ui_class + uncertain = args.uncertain self.board = Board(level=level) - self.bot = BadBot() + self.bot = BadBot(uncertain=uncertain) self.ui = ui_class(self.bot) self.game = Game(self.board,self.ui) |