Chess piece moves are in the corner.
authorSimon Cross <hodgestar@gmail.com>
Sat, 17 May 2014 18:30:51 +0000 (20:30 +0200)
committerSimon Cross <hodgestar@gmail.com>
Sat, 17 May 2014 18:31:09 +0000 (20:31 +0200)
data/location_decks/puzzles/chess.yaml

index 3c677af823861fc1413169b037f52138914ca2ce..2fc0ac68fd32b81afcb691be1232281f91dc0992 100644 (file)
@@ -4,10 +4,45 @@ puzzle: true
 # This field is ignored, but it's a useful place to put some card definitions
 # we can reference later.
 _card_definitions:
-  - &TEST-WIN-CARD
-    card_name: 'test-win'
+  - &CHESS-WIN-CARD-BISHOP
+    card_name: 'chess-win-bishop'
     actions:
-      - action_class: 'AcquireWinToken'
+      - action_class: AllowChessMove
+        required_bits: []
+        data:
+          chesspiece: BISHOP
+      - action_class: AcquireWinToken
+        required_bits: [RED, GREEN, BLUE]
+        data:
+          once: true
+  - &CHESS-WIN-CARD-CASTLE
+    card_name: 'chess-win-rook'
+    actions:
+      - action_class: AllowChessMove
+        required_bits: []
+        data:
+          chesspiece: CASTLE
+      - action_class: AcquireWinToken
+        required_bits: [RED, GREEN, BLUE]
+        data:
+          once: true
+  - &CHESS-WIN-CARD-KNIGHT
+    card_name: 'chess-win-knight'
+    actions:
+      - action_class: AllowChessMove
+        required_bits: []
+        data:
+          chesspiece: KNIGHT
+      - action_class: AcquireWinToken
+        required_bits: [RED, GREEN, BLUE]
+        data:
+          once: true
+  - &CHESS-WIN-CARD-SEPPUKU
+    card_name: 'chess-win-seppuku'
+    actions:
+      - action_class: LoseHealthOrMSB
+        required_bits: []
+      - action_class: AcquireWinToken
         required_bits: [RED, GREEN, BLUE]
         data:
           once: true
@@ -64,11 +99,11 @@ _card_definitions:
           clear: [NORTH, SOUTH, WEST]
 
 cards:
-  - *TEST-WIN-CARD
+  - *CHESS-WIN-CARD-BISHOP
   - *TEST-BORING
   - *TEST-BORING
   - *TEST-BORING
-  - *TEST-WIN-CARD
+  - *CHESS-WIN-CARD-KNIGHT
 
   - *TEST-BORING
   - *TEST-BORING
@@ -88,8 +123,8 @@ cards:
   - *TEST-BORING
   - *TEST-BORING
 
-  - *TEST-WIN-CARD
+  - *CHESS-WIN-CARD-CASTLE
   - *TEST-BORING
   - *TEST-BORING
   - *TEST-BORING
-  - *TEST-WIN-CARD
+  - *CHESS-WIN-CARD-SEPPUKU