-
Notifications
You must be signed in to change notification settings - Fork 3
/
levels.json
151 lines (151 loc) · 4.71 KB
/
levels.json
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
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
{
"levels": {
"1": {
"title": "The Clever Farmer",
"instructions": "There is a farmer who wishes to cross a river but he is not alone. He also has a goat, a wolf, and a cabbage along with him. There is only one boat available which can support the farmer and either of the goat, wolf or the cabbage. So at a time, the boat can have only two objects (farmer and one other).\nBut the problem is, if the goat and wolf are left alone (either in the boat or onshore), the wolf will eat the goat. Similarly, if the Goat and cabbage are left alone, then goat will eat the cabbage. The farmer wants to cross the river with all three of his belongings: goat, wolf, and cabbage.\nWhat strategy he should use to do so?",
"characters": [
"farmer",
"wolf",
"goat",
"cabbage"
],
"killWord": "Eaten by",
"KillConditions": [
{
"condition": "absent",
"character": "farmer",
"killer": "wolf",
"victim": "goat"
},
{
"condition": "absent",
"character": "farmer",
"killer": "goat",
"victim": "cabbage"
}
],
"images": {
"farmer": "farmer.png",
"wolf": "wolf.png",
"goat": "goat.png"
}
},
"2": {
"title": "Missionaries Vs Cannibals",
"instructions": "Three missionaries and three cannibals come to a river and find a boat that holds two people. Everyone must get across the river to continue on the journey. However, if the cannibals ever outnumber the missionaries on either bank, the missionaries will be eaten. Find a series of crossings that will get everyone safely to the other side of the river.",
"characters": [
"missionary",
"cannibal"
],
"killWord": "Eaten by",
"killConditions": [
{
"condition": "greater",
"killer": "cannibal",
"victim": "missionary"
}
],
"images": {
"missionary": "missionary.png",
"cannibal": "cannibal.png"
}
},
"3": {
"title": "The Jealous Husband",
"instructions": "Three couples need to cross a river in a boat. The boat can carry at most two people. The husbands are so jealous that they can not let their wife with another man, without their presence.",
"characters": [
"redHusband",
"redWife",
"blueHusband",
"blueWife",
"greenHusband",
"greenWife"
],
"killWord": "Killed by",
"killConditions": [
{
"condition": "absent",
"character": "redHusband",
"killer": "blueHusband",
"victim": "redWife"
},
{
"condition": "absent",
"character": "redHusband",
"killer": "greenHusband",
"victim": "redWife"
},
{
"condition": "absent",
"character": "blueHusband",
"killer": "redHusband",
"victim": "blueWife"
},
{
"condition": "absent",
"character": "blueHusband",
"killer": "greenHusband",
"victim": "blueWife"
},
{
"condition": "absent",
"character": "greenHusband",
"killer": "redHusband",
"victim": "greenWife"
},
{
"condition": "absent",
"character": "greenHusband",
"killer": "blueHusband",
"victim": "greenWife"
}
],
"images": {
"redHusband": "redHusband.png",
"redWife": "redWife.png",
"blueHusband": "blueHusband.png",
"blueWife": "blueWife.png",
"greenHusband": "greenHusband.png",
"greenWife": "greenWife.png"
}
},
"4": {
"title": "Men and Money",
"instructions": "Three men must cross the river with three bags of money, but if the total amount of money in the bags is more than the men own, they'll steal the money and run away.",
"characters": [
"redMan",
"redMoney",
"blueMan",
"blueMoney",
"greenMan",
"greenMoney"
],
"killWord": "Stolen by",
"values": {
"redMoney": 10000,
"blueMoney": 20000,
"greenMoney": 30000
},
"killConditions": [
{
"condition": "absent",
"character": "blueMan",
"killer": "redMan",
"victim": "blueMoney"
},
{
"condition": "absent",
"character": "greenMan",
"killer": "redMan",
"victim": "greenMoney"
},
{
"condition": "absent",
"character": "greenMan",
"killer": "blueMan",
"victim": "greenMoney"
}
]
}
}
}