c6a47870cb20b237dda5d0773264c129dc8ba3ef
[naja.git] / data / location_decks / introduction.yaml
1 description: "Introduction"
2 puzzle: true
3
4 # This field is ignored, but it's a useful place to put some action definitions
5 # we can reference later.
6 _action_definitions:
7   - &NULL-ACTION
8     action_class: 'DoNothing'
9     required_bits: []
10     data:
11       message: "Nothing to see here."
12
13   - &NULL-CARD
14     card_name: 'null'
15     actions:
16       - *NULL-ACTION
17
18   - &STEP1-ACTION
19     action_class: 'DoNothing'
20     required_bits: []
21     data:
22       message: "Welcome to the game. You can only move to chequered squares, therefore you can stay here or move right."
23
24   - &STEP1-CARD
25     card_name: 'step1'
26     actions:
27       - *STEP1-ACTION
28
29   - &STEP2-ACTION
30     action_class: 'SetBits'
31     required_bits: []
32     data:
33       message: "Moving to a tile requires picking an action. Some tiles' actions set bits on your robot. Such as the {SOUTH} bit."
34
35   - &STEP2-CARD
36     card_name: 'step2'
37     bits: [SOUTH]
38     actions:
39       - *STEP2-ACTION
40
41   - &STEP3-ACTION
42     action_class: 'ClearBits'
43     required_bits: []
44     data:
45       message: "Other tiles' actions clear bits. {SOUTH} or {EAST}. For the next part of the tutorial, we are  going to strictly control your movement bits."
46
47   - &STEP3-CARD-1
48     card_name: 'step3-1'
49     bits: [SOUTH, WEST]
50     actions:
51       - *STEP3-ACTION
52
53   - &STEP3-CARD-2
54     card_name: 'step3-2'
55     bits: [EAST]
56     actions:
57       - *STEP3-ACTION
58
59   - &STEP4-ACTION
60     action_class: 'SetBits'
61     required_bits: []
62     data:
63       message: "There are key bits that can be set, such as {RED}. They may be required by actions."
64
65   - &STEP4-CARD
66     card_name: 'step4'
67     bits: [RED, SOUTH, EAST]
68     actions:
69       - *STEP4-ACTION
70
71   - &STEP5-ACTION-BLUE
72     action_class: 'GenericBits'
73     required_bits: [BLUE]
74     data:
75       message: "You need to have the {BLUE} bit, to use this action and continue. Some actions have more complex requirements."
76       set: [EAST]
77       clear: [NORTH, SOUTH, WEST]
78
79   - &STEP5-ACTION-DEFAULT
80     action_class: 'GenericBits'
81     required_bits: []
82     data:
83       message: "Go back."
84       set: [WEST]
85       clear: [EAST, SOUTH, NORTH]
86
87   - &STEP5-CARD
88     card_name: 'step5'
89     bits: []
90     actions:
91       - *STEP5-ACTION-BLUE
92       - *STEP5-ACTION-DEFAULT
93
94   - &STEP6-ACTION-RED
95     action_class: 'GenericBits'
96     required_bits: [RED]
97     data:
98       message: "You need to have the {RED} bit, to use this action to set the {BLUE} bit."
99       set: [NORTH, BLUE]
100       clear: [SOUTH, EAST, WEST]
101
102   - &STEP6-ACTION-DEFAULT
103     action_class: 'GenericBits'
104     required_bits: []
105     data:
106       message: "This action doesn't require anything. Go back."
107       set: [NORTH]
108       clear: [SOUTH, EAST, WEST]
109
110   - &STEP6-CARD
111     card_name: 'step6'
112     bits: [BLUE]
113     actions:
114       - *STEP6-ACTION-RED
115       - *STEP6-ACTION-DEFAULT
116
117   - &STEP7-ACTION
118     action_class: 'SetBits'
119     required_bits: []
120     data:
121       message: "Almost there. You have free reign on this column. Collect yourself a win bit {WINTOKEN} to finish the level. Good luck!"
122
123   - &STEP7-CARD
124     card_name: 'step7'
125     bits: [NORTH, SOUTH]
126     actions:
127       - *STEP7-ACTION
128
129   - &STEP8-ACTION-DEFAULT
130     action_class: 'LoseHealthOrMSB'
131     required_bits: []
132     data:
133       message: "Losing health {HEALTH} is a bad idea..."
134
135   - &STEP8-ACTION-GREEN
136     action_class: 'SetBits'
137     required_bits: [BLUE, RED]
138
139   - &STEP8-CARD
140     card_name: 'step8'
141     bits: [GREEN]
142     actions:
143       - *STEP8-ACTION-DEFAULT
144       - *STEP8-ACTION-GREEN
145
146   - &STEP9-ACTION
147     action_class: 'ToggleBits'
148     required_bits: []
149     data:
150       message: "I wonder what the most significant bit {MSB} does..."
151
152   - &STEP9-CARD
153     card_name: 'step9'
154     bits: [MSB]
155     actions:
156       - *STEP9-ACTION
157
158   - &STEP10-ACTION
159     action_class: 'ShiftLocations'
160     required_bits: [GREEN]
161     data:
162       direction: EAST
163       message: "Some actions change the game board."
164
165   - &STEP10-CARD
166     card_name: 'step10'
167     actions:
168       - *STEP10-ACTION
169
170   - &STEP11-ACTION
171     action_class: 'GenericBits'
172     required_bits: []
173     data:
174       message: "We may have lied to you."
175       set: [WEST]
176       clear: [NORTH, SOUTH, EAST]
177
178   - &STEP11-CARD
179     card_name: 'step11'
180     actions:
181       - *STEP11-ACTION
182
183   - &STEP12-ACTION
184     action_class: 'GenericBits'
185     required_bits: []
186     data:
187       message: "In this board, tiles didn't change. In the random games, after taking an action (or the timer expires) the tile will be replaced by another one."
188       set: [NORTH]
189       clear: [SOUTH, EAST, WEST]
190
191   - &STEP12-CARD
192     card_name: 'step12'
193     actions:
194       - *STEP12-ACTION
195
196   - &STEP13-ACTION
197     action_class: 'GenericBits'
198     required_bits: []
199     data:
200       set: [EAST, NORTH, SOUTH]
201       clear: [WEST]
202
203   - &STEP13-CARD
204     card_name: 'step13'
205     actions:
206       - *STEP13-ACTION
207
208   - &WIN-ACTION
209     action_class: 'AcquireWinToken'
210     required_bits: [RED, GREEN, BLUE]
211
212   - &WIN-CARD
213     card_name: 'win'
214     actions:
215       - *WIN-ACTION
216
217 cards:
218   - *STEP1-CARD
219   - *STEP2-CARD
220   - *STEP3-CARD-2
221   - *NULL-CARD
222   - *STEP8-CARD
223
224   - *NULL-CARD
225   - *STEP3-CARD-1
226   - *STEP4-CARD
227   - *STEP5-CARD
228   - *STEP7-CARD
229
230   - *NULL-CARD
231   - *NULL-CARD
232   - *STEP6-CARD
233   - *NULL-CARD
234   - *STEP9-CARD
235
236   - *WIN-CARD
237   - *STEP13-CARD
238   - *STEP13-CARD
239   - *STEP13-CARD
240   - *STEP10-CARD
241
242   - *NULL-CARD
243   - *NULL-CARD
244   - *NULL-CARD
245   - *STEP12-CARD
246   - *STEP11-CARD
247
248 defaults:
249   initial_bits: 0x4
250   initial_pos: [0, 0]
251   max_health: 7
252   wins_required: 1