add flag check to finish
This commit is contained in:
parent
d5f4f37780
commit
792b8905c2
|
@ -322,7 +322,8 @@ def game_loop():
|
|||
except NoLevelFoundError as err:
|
||||
print("Error encountered: {}".format(err))
|
||||
elif command in ("f", "finish", "(f)inish"):
|
||||
finish_game(game)
|
||||
if check_flag(game.level, flag_checker):
|
||||
finish_game(game)
|
||||
elif command in ("i", "info", "information", "(i)nfo", "(i)nformation"):
|
||||
game.print_info()
|
||||
elif command in ("h", "help", "(h)elp"):
|
||||
|
|
Reference in New Issue