summaryrefslogtreecommitdiff
path: root/app.py
diff options
context:
space:
mode:
Diffstat (limited to 'app.py')
-rw-r--r--app.py8
1 files changed, 5 insertions, 3 deletions
diff --git a/app.py b/app.py
index 6a2b00a..be44752 100644
--- a/app.py
+++ b/app.py
@@ -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)