card names should not be lists
authorNeil <neil@dip.sun.ac.za>
Sat, 17 May 2014 12:45:22 +0000 (14:45 +0200)
committerNeil <neil@dip.sun.ac.za>
Sat, 17 May 2014 12:45:22 +0000 (14:45 +0200)
data/location_decks/standard.yaml
data/location_decks/test_puzzle.yaml

index 885070edfb9d0530109048d1780b653b4970986d..92f13e5de04df4b368c7553f28da39b5a84825b8 100644 (file)
@@ -99,48 +99,41 @@ _action_definitions:
 # we can reference later.
 _card_definitions:
   - &WIN-CARD-1
-    card_name:
-      - 'win1'
+    card_name: 'win1'
     actions:
       - *ACQUIRE-WIN-TOKEN
   - &WIN-CARD-2
-    card_name:
-      - 'win2'
+    card_name: 'win2'
     actions:
       - *BAD-DEFAULT
       - *ACQUIRE-WIN-TOKEN
   - &WIN-CARD-3
-    card_name:
-      - 'win3'
+    card_name: 'win3'
     actions:
       - *SET-BITS-DEFAULT
       - *ACQUIRE-WIN-TOKEN
 
   - &KNIGHT-AND-SET
-    card_name:
-      - 'knight_set'
+    card_name: 'knight_set'
     actions:
       - *BAD-DEFAULT
       - *SET-BITS-B
       - *KNIGHT-MOVE
   - &CASTLE-AND-SET
-    card_name:
-      - 'castle_set'
+    card_name: 'castle_set'
     actions:
       - *BAD-DEFAULT
       - *SET-BITS-G
       - *CASTLE-MOVE
   - &BISHOP-AND-SET
-    card_name:
-      - 'bishop_set'
+    card_name: 'bishop_set'
     actions:
       - *BAD-DEFAULT
       - *SET-BITS-R
       - *BISHOP-MOVE
 
   - &TOGGLE-RG-R
-    card_name:
-      - 'toggle-rg-r'
+    card_name: 'toggle-rg-r'
     bits: [RED, GREEN]  # Colour-blind robot!
     actions:
       - *GAIN-HEALTH-DEFAULT
@@ -149,8 +142,7 @@ _card_definitions:
       - action_class: 'SetBits'
         required_bits: [GREEN, BLUE]
   - &TOGGLE-RG-G
-    card_name:
-      - 'toggle-rg-g'
+    card_name: 'toggle-rg-g'
     bits: [RED, GREEN]  # Colour-blind robot!
     actions:
       - *GAIN-HEALTH-DEFAULT
@@ -160,59 +152,51 @@ _card_definitions:
         required_bits: [RED, BLUE]
 
   - &SHIFT-N-AND-HEAL
-    card_name:
-      - 'shift-n-heal'
+    card_name: 'shift-n-heal'
     actions:
       - *TOGGLE-BITS-DEFAULT
       - *SHIFT-N
       - *HEAL-RG
   - &SHIFT-S-AND-HEAL
-    card_name:
-      - 'shift-s-heal'
+    card_name: 'shift-s-heal'
     actions:
       - *TOGGLE-BITS-DEFAULT
       - *SHIFT-S
       - *HEAL-RG
   - &SHIFT-E-AND-HEAL
-    card_name:
-      - 'shift-e-heal'
+    card_name: 'shift-e-heal'
     actions:
       - *TOGGLE-BITS-DEFAULT
       - *SHIFT-E
       - *HEAL-RB
   - &SHIFT-W-AND-HEAL
-    card_name:
-      - 'shift-w-heal'
+    card_name: 'shift-w-heal'
     actions:
       - *TOGGLE-BITS-DEFAULT
       - *SHIFT-W
       - *HEAL-RB
 
   - &ROT-CW-AND-SET
-    card_name:
-      - 'rot-cw-set'
+    card_name: 'rot-cw-set'
     actions:
       - *TOGGLE-BITS-DEFAULT
       - *ROT-CW
       - *SET-BITS-B
 
   - &ROT-CCW-AND-SET
-    card_name:
-      - 'rot-ccw-set'
+    card_name: 'rot-ccw-set'
     actions:
       - *TOGGLE-BITS-DEFAULT
       - *ROT-CCW
       - *SET-BITS-G
 
   - &SHIFT-E-BITSHIFT
-    card_name:
-      - 'shift-e-bitshift'
+    card_name: 'shift-e-bitshift'
     actions:
       - *SHIFT-E
       - *BITSHIFT-R
   - &SHIFT-W-BITSHIFT
-    card_name:
-      - 'shift-w-bitshift'
+    card_name: 'shift-w-bitshift'
     actions:
       - *SHIFT-W
       - *BITSHIFT-L
index 8ca9f2d0947fd111df1eadbf89cd0de1ff8ecfee..33dc902c7976d03ec7992eb66655f2e725999f9f 100644 (file)
@@ -93,13 +93,11 @@ _action_definitions:
 # we can reference later.
 _card_definitions:
   - &TEST-WIN-CARD
-    card_name:
-      - 'test-win'
+    card_name: 'test-win'
     actions:
       - *TEST-WIN
   - &TEST-BORING
-    card_name:
-      - 'test-boring'
+    card_name: 'test-boring'
     actions:
       - *TEST-NULL