Permalink
Browse files

Merge pull request #11 from CrazyPython/patch-7

Moved losing the game out of word.update()
  • Loading branch information...
2 parents 2a1870a + c7eb1ea commit b2edf2465cad12dd2a400ccf8dae83b2badf6bfb cp4k committed Oct 7, 2012
Showing with 2 additions and 1 deletion.
  1. +2 −1 TypingGame.py
View
@@ -54,7 +54,8 @@ def update(self):
if old_top < height/4 and self.rect.top >= height/4:
extra_words.append(spawn_word())
if self.rect.bottom >= height:
- #TODO: Move losing the game out of this function
+ lose()
+ def lose():
print "YOU LOSE! Your score is:",score
running = False

0 comments on commit b2edf24

Please sign in to comment.