summaryrefslogtreecommitdiff
path: root/app.py
diff options
context:
space:
mode:
authorAineopintojen-harjoitustyo-Algoritmit-j <github-hy-tiralabra@v.hix.fi>2024-01-30 14:27:28 +0200
committerAineopintojen-harjoitustyo-Algoritmit-j <github-hy-tiralabra@v.hix.fi>2024-01-30 14:27:28 +0200
commitde4daa463d75403144ac63d3cd94aebf74fa0cb2 (patch)
tree943cfb0a53c98a0c2573fb748af29973e3642a39 /app.py
parent6d62f8c23e8ab76a2034dde08cff8302c9989fdc (diff)
Renaming bombs to mines.
Diffstat (limited to 'app.py')
-rw-r--r--app.py18
1 files changed, 7 insertions, 11 deletions
diff --git a/app.py b/app.py
index 8394f68..0dfef0a 100644
--- a/app.py
+++ b/app.py
@@ -11,18 +11,14 @@ class App:
board_opts = {'level': Level.BEGINNER}
tui_opts = {'bot': DSSPBot}
if args:
- if args.intermediate:
- board_opts['level'] = Level.INTERMEDIATE
- if args.expert:
- board_opts['level'] = Level.EXPERT
- if args.w:
- board_opts['width'] = args.w
- if args.H:
- board_opts['height'] = args.H
- if args.b:
- board_opts['bombs'] = args.b
+ # pylint: disable = multiple-statements
+ if args.intermediate: board_opts['level'] = Level.INTERMEDIATE
+ if args.expert: board_opts['level'] = Level.EXPERT
+ if args.width: board_opts['width'] = args.width
+ if args.height: board_opts['height'] = args.height
+ if args.mines: board_opts['mines'] = args.mines
- tui_opts['bot'] = SimpleBot if args.simple else DSSPBot
+ if args.simple: tui_opts['bot'] = SimpleBot
tui_opts['autoplay'] = args.auto
tui_opts['interactive'] = not args.uncertain
tui_opts['suppress'] = args.quiet