Not exactly Kasparov.
authorSimon Cross <hodgestar@gmail.com>
Sat, 17 May 2014 17:07:47 +0000 (19:07 +0200)
committerSimon Cross <hodgestar@gmail.com>
Sat, 17 May 2014 17:07:59 +0000 (19:07 +0200)
data/location_decks/puzzles/chess.yaml [new file with mode: 0644]

diff --git a/data/location_decks/puzzles/chess.yaml b/data/location_decks/puzzles/chess.yaml
new file mode 100644 (file)
index 0000000..e43c182
--- /dev/null
@@ -0,0 +1,80 @@
+description: "Kasparov to F3"
+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'
+    actions:
+      - action_class: 'AcquireWinToken'
+        required_bits: []
+  - &TEST-BORING
+    card_name: 'test-boring'
+    actions:
+      - action_class: 'DoNothing'
+        required_bits: []
+  - &CHESS-CENTRE
+    card_name: 'chess-centre'
+    bits: [NORTH, SOUTH, EAST, WEST]
+    actions:
+      - action_class: 'SetBits'
+        required_bits: []
+      - action_class: 'AllowChessMove'
+        data: {'chesspiece': BISHOP}
+        required_bits: [RED, GREEN, BLUE, MSB]
+  - &CHESS-NORTH
+    card_name: 'chess-north'
+    bits: [NORTH, EAST, WEST, RED]
+    actions:
+      - action_class: 'ToggleBits'
+        required_bits: [NORTH]
+  - &CHESS-SOUTH
+    card_name: 'chess-south'
+    bits: [SOUTH, EAST, WEST, RED, GREEN]
+    actions:
+      - action_class: 'ToggleBits'
+        required_bits: [SOUTH]
+  - &CHESS-EAST
+    card_name: 'chess-east'
+    bits: [NORTH, SOUTH, EAST, RED, BLUE]
+    actions:
+      - action_class: 'ToggleBits'
+        required_bits: [EAST]
+  - &CHESS-WEST
+    card_name: 'chess-west'
+    bits: [NORTH, SOUTH, WEST, BLUE, MSB]
+    actions:
+      - action_class: 'ToggleBits'
+        required_bits: [WEST]
+
+cards:
+  - *TEST-WIN-CARD
+  - *TEST-BORING
+  - *TEST-BORING
+  - *TEST-BORING
+  - *TEST-WIN-CARD
+
+  - *TEST-BORING
+  - *TEST-BORING
+  - *CHESS-NORTH
+  - *TEST-BORING
+  - *TEST-BORING
+
+  - *TEST-BORING
+  - *CHESS-WEST
+  - *CHESS-CENTRE
+  - *CHESS-EAST
+  - *TEST-BORING
+
+  - *TEST-BORING
+  - *TEST-BORING
+  - *CHESS-SOUTH
+  - *TEST-BORING
+  - *TEST-BORING
+
+  - *TEST-WIN-CARD
+  - *TEST-BORING
+  - *TEST-BORING
+  - *TEST-BORING
+  - *TEST-WIN-CARD