summaryrefslogtreecommitdiff
path: root/app.py
diff options
context:
space:
mode:
authorAineopintojen-harjoitustyo-Algoritmit-j <github-hy-tiralabra@v.hix.fi>2024-01-29 15:48:34 +0200
committerAineopintojen-harjoitustyo-Algoritmit-j <github-hy-tiralabra@v.hix.fi>2024-01-29 15:48:34 +0200
commitcef4a07bb411a120d5b2e15373f3f5f1fec7c71b (patch)
treed4205150c075eac51c37b0a79d05caccddf5de43 /app.py
parent2b2117ec7bf75ad5ba37cc5b21870d073cb405a4 (diff)
Making command line argumets for custom board sizes.
Diffstat (limited to 'app.py')
-rw-r--r--app.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/app.py b/app.py
index 8ca19ab..f10a414 100644
--- a/app.py
+++ b/app.py
@@ -11,9 +11,8 @@ class App:
level = Level.BEGINNER
auto, uncertain, quiet = False, False, 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
+ level = Level.EXPERT if args.expert else level
width, height, bombs = LevelSpecs[level]
auto = args.auto
auto, uncertain = (True, True) if args.uncertain else (auto, False)