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