diff options
| author | George Angelopoulos <l4than.d3vers@gmail.com> | 2013-04-20 23:07:23 +0300 |
|---|---|---|
| committer | George Angelopoulos <l4than.d3vers@gmail.com> | 2013-04-20 23:07:23 +0300 |
| commit | 1c657f1c63776ecbc57b47ebe329cf10ccc8967d (patch) | |
| tree | aadfe6d61a58d5ffe0b0d1fcc1a7176f5bc6bfef | |
| parent | 7635811fbb0e4d942394272f1bfee728fd8ebdeb (diff) | |
Added the final bug tile. ToDo: leave restrictions
| -rw-r--r-- | weatbag/tiles/s2e1.py | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/weatbag/tiles/s2e1.py b/weatbag/tiles/s2e1.py new file mode 100644 index 0000000..1abc1d1 --- /dev/null +++ b/weatbag/tiles/s2e1.py @@ -0,0 +1,21 @@ +from weatbag import words + +class Tile: + def __init__(self): + self.first_time = True + + def describe(self): + print("You have reached upstream." + "You see the bug.") + + def action(self, player, do): + if (do[0] in words.look) and ('bug' in do): + print("Traceback (most recent call last):\n" + " File \"computergame.py\", line 97397, in matrix.py\n" + "IndexError: list index out of range") + input() + if self.first_time == True: + print("Suddenly, you realize!") + self.first_time = False + input() + print("It's not a bug, it's a feature!") |
