From cef4a07bb411a120d5b2e15373f3f5f1fec7c71b Mon Sep 17 00:00:00 2001 From: Aineopintojen-harjoitustyo-Algoritmit-j Date: Mon, 29 Jan 2024 15:48:34 +0200 Subject: Making command line argumets for custom board sizes. --- app.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'app.py') 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) -- cgit v1.2.3