-
Notifications
You must be signed in to change notification settings - Fork 0
/
test.py
71 lines (66 loc) · 3.02 KB
/
test.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
__author__ = 'gram'
from spels import SpellGame
SpellGame().test([
[ 'get chain', 'You cannot get that.\n'],
[ 'get egg', 'You cannot get that.\n' ],
[ 'go west', '''You are in a beautiful garden - there is a well in front of you.
There is a door going east from here.
There is a gate going outside from here.
You see a frog on the floor.
You see a chain on the floor.
'''],
[ 'unlock gate', 'Unlock gate how?\n'],
[ 'unlock gate with key', 'You don\'t have the key.\n'],
[ 'get chain', 'You are now carrying the chain.\n'],
[ 'drop bucket', 'You don\'t have the bucket.\n'],
[ 'drop chain', 'You dropped the chain in the garden.\n'],
[ 'get chain', 'You are now carrying the chain.\n'],
[ 'go east', '''You are in the bedroom of a wizards house - there is a wizard snoring loudly on the bed.
There is a door going west from here.
There is a stairway going upstairs from here.
You see a bucket on the floor.
You see a bottle on the floor.
'''],
[ 'get bucket', 'You are now carrying the bucket.\n'],
[ 'go upstairs', '''You are in the attic of the wizards house - there is a giant welding torch in the corner.
There is a stairway going downstairs from here.
'''],
[ 'weld chain to bucket', 'The chain is now securely welded to the bucket.\n'],
[ 'go downstairs', '''You are in the bedroom of a wizards house - there is a wizard snoring loudly on the bed.
There is a door going west from here.
There is a stairway going upstairs from here.
You see a bottle on the floor.
'''],
[ 'go west', '''You are in a beautiful garden - there is a well in front of you.
There is a door going east from here.
There is a gate going outside from here.
You see a frog on the floor.
'''],
[ 'dunk bucket in well', 'The bucket is now full of water.\n'],
[ 'go east', '''You are in the bedroom of a wizards house - there is a wizard snoring loudly on the bed.
There is a door going west from here.
There is a stairway going upstairs from here.
You see a bottle on the floor.
'''],
[ 'splash wizard with bucket', '''The wizard awakens from his slumber.
He greets you warmly and drops a key. But he is confused why you woke him. What now?
'''],
[ 'splash wizard with bucket', 'You have already done that.\n' ],
[ 'get key', 'You are now carrying the key.\n'],
[ 'go west', '''You are in a beautiful garden - there is a well in front of you.
There is a door going east from here.
There is a gate going outside from here.
You see a frog on the floor.
'''],
[ 'break gate', 'I don\'t know how to break gate.\n'],
[ 'unlock gate', 'Unlock gate how?\n'],
[ 'unlock gate with key', 'You unlock the gate! It\'s very dark outside...\n'],
[ 'go outside', '''You are in the middle of the deep woods. only a few rays of sunlight reach the ground from here. The porch of the wizard\'s house is to your right.
There is a gate going inside from here.
You see a cake on the floor.
'''],
[ 'go', 'Go what?\n'],
[ 'get cake', '''You are now carrying the cake.
YES! CAKE! YOU WIN THE GAME 100000000 TIMES!!!
''']]
)