summaryrefslogtreecommitdiff
path: root/app.py
diff options
context:
space:
mode:
Diffstat (limited to 'app.py')
-rw-r--r--app.py11
1 files changed, 7 insertions, 4 deletions
diff --git a/app.py b/app.py
index b82bf57..cb79568 100644
--- a/app.py
+++ b/app.py
@@ -14,10 +14,13 @@ class App:
# pylint: disable = multiple-statements
if args.intermediate: board_opts['level'] = Level.INTERMEDIATE
if args.expert: board_opts['level'] = Level.EXPERT
- if args.mines: board_opts['mines'] = args.mines
- if args.size:
- board_opts['width'] = args.size[0]
- board_opts['height'] = args.size[1]
+ if args.board:
+ board_opts['board'] = args.board
+ else:
+ if args.mines: board_opts['mines'] = args.mines
+ if args.size:
+ board_opts['width'] = args.size[0]
+ board_opts['height'] = args.size[1]
if args.bot==0: tui_opts['bot'] = None
if args.bot==1: tui_opts['bot'] = SimpleBot