1. Jason R. Coombs
  2. adventure

Commits

Brandon Rhodes  committed 177dae8

Bugfix: the game is also finished if "is_done" is true.

  • Participants
  • Parent commits 848a61c
  • Branches default

Comments (0)

Files changed (1)

File adventure/game.py

View file
 
     @property
     def is_finished(self):
-        return self.is_dead and not self.yesno_callback
+        return (self.is_dead or self.is_done) and not self.yesno_callback
 
     # Game startup