diff options
| author | Kleopatra Angelidi <akleop@gmail.com> | 2013-05-15 01:45:30 +0300 |
|---|---|---|
| committer | Kleopatra Angelidi <akleop@gmail.com> | 2013-05-15 01:45:30 +0300 |
| commit | dfbfa4c731af5dbd86ea9857d969c97bffaea831 (patch) | |
| tree | e95cc0cd1078ba5b55c321ed18e5a949cb9310b9 | |
| parent | 59e085f5398d0c07cfbe2820ff0ce373287cc477 (diff) | |
added challenge and __init__ with boolean
| -rw-r--r-- | weatbag/tiles/n5w5.py | 20 |
1 files changed, 18 insertions, 2 deletions
diff --git a/weatbag/tiles/n5w5.py b/weatbag/tiles/n5w5.py index d65886e..dac6249 100644 --- a/weatbag/tiles/n5w5.py +++ b/weatbag/tiles/n5w5.py @@ -2,11 +2,27 @@ from weatbag import words from weatbag.utils import transfer class Tile: + def __init__(self): + self.challenge_completed = False + def describe(self): - print("\n") + print("You are on the beach. You see a small kiosk selling " + "ice creams!\n") + if not self.challenge_completed: + self.challenge() + + def challenge(self): + print("You go there and see that there's an old lady inside who stir a " + "pot. A fat ginger cat outside the kiosk is digging holes in the " + "sand.\nYou say hi, and the old lady replies:\n" + "Hello to you traveler, I'm Grace Hopper and this is my cat " + "Sandy Claws. I could offer you a cream but first you must " + "answer me this:\n" + "Tom's mother has three children. One is named April, one is " + "named May. What is the third one named?\n") def action(self, player, do): - print("I don't understand.") + print("I don't understand.\n") #sandy claws |
