Move game exit message outside of the loop
Signed-off-by: Alek Ratzloff <alekratz@gmail.com>
This commit is contained in:
@@ -29,6 +29,7 @@ while True:
|
|||||||
game.say()
|
game.say()
|
||||||
game.run_command(line)
|
game.run_command(line)
|
||||||
except (KeyboardInterrupt, EOFError):
|
except (KeyboardInterrupt, EOFError):
|
||||||
game.say()
|
|
||||||
game.say("Bye.")
|
|
||||||
break
|
break
|
||||||
|
|
||||||
|
game.say()
|
||||||
|
game.say("Bye.")
|
||||||
|
|||||||
Reference in New Issue
Block a user