Rename test puzzle to marathon.
authorSimon Cross <hodgestar@gmail.com>
Sat, 17 May 2014 20:30:10 +0000 (22:30 +0200)
committerSimon Cross <hodgestar@gmail.com>
Sat, 17 May 2014 20:30:18 +0000 (22:30 +0200)
data/location_decks/puzzles/marathon.yaml [new file with mode: 0644]
data/location_decks/puzzles/test.yaml [deleted file]
naja/constants.py

diff --git a/data/location_decks/puzzles/marathon.yaml b/data/location_decks/puzzles/marathon.yaml
new file mode 100644 (file)
index 0000000..22d41ff
--- /dev/null
@@ -0,0 +1,61 @@
+description: "Marathon"
+puzzle: true
+
+# This field is ignored, but it's a useful place to put some action definitions
+# we can reference later.
+_action_definitions:
+  - &DO-NOTHING
+    action_class: DoNothing
+    required_bits: []
+  - &WIN-ONCE
+    action_class: GenericBits
+    required_bits: [RED, GREEN, BLUE]
+    data:
+      clear: [RED, GREEN, BLUE]
+      acquire_win: true
+      once: true
+
+# This field is ignored, but it's a useful place to put some card definitions
+# we can reference later.
+_card_definitions:
+  - &WIN-CARD
+    card_name: 'test-win'
+    bits: [RED, GREEN, BLUE]
+    actions:
+      - *DO-NOTHING
+      - *WIN-ONCE
+  - &BORING
+    card_name: 'test-boring'
+    actions:
+      - *DO-NOTHING
+
+cards:
+  - *WIN-CARD
+  - *BORING
+  - *BORING
+  - *BORING
+  - *WIN-CARD
+
+  - *BORING
+  - *BORING
+  - *BORING
+  - *BORING
+  - *BORING
+
+  - *BORING
+  - *BORING
+  - *BORING
+  - *BORING
+  - *BORING
+
+  - *BORING
+  - *BORING
+  - *BORING
+  - *BORING
+  - *BORING
+
+  - *WIN-CARD
+  - *BORING
+  - *BORING
+  - *BORING
+  - *WIN-CARD
diff --git a/data/location_decks/puzzles/test.yaml b/data/location_decks/puzzles/test.yaml
deleted file mode 100644 (file)
index 33dc902..0000000
+++ /dev/null
@@ -1,133 +0,0 @@
-description: "Test Puzzle"
-puzzle: true
-
-# This field is ignored, but it's a useful place to put some action definitions
-# we can reference later.
-_action_definitions:
-  # No-colour actions.
-  - &SET-BITS-DEFAULT
-    action_class: 'LoseHealthOrMSBAndSetBits'
-    required_bits: []
-  - &GAIN-HEALTH-DEFAULT
-    action_class: 'GainHealthAndClearBitsOrMSB'
-    required_bits: []
-  - &TOGGLE-BITS-DEFAULT
-    action_class: 'ToggleBits'
-    required_bits: []
-  - &BAD-DEFAULT
-    action_class: 'LoseHealthOrMSB'
-    required_bits: []
-
-  # One-colour actions.
-  - &SET-BITS-R
-    action_class: 'SetBits'
-    required_bits: [RED]
-  - &SET-BITS-G
-    action_class: 'SetBits'
-    required_bits: [GREEN]
-  - &SET-BITS-B
-    action_class: 'SetBits'
-    required_bits: [BLUE]
-
-  - &SHIFT-N
-    action_class: 'ShiftLocations'
-    required_bits: [BLUE]
-    data: {'direction': NORTH}
-  - &SHIFT-S
-    action_class: 'ShiftLocations'
-    required_bits: [BLUE]
-    data: {'direction': SOUTH}
-  - &SHIFT-E
-    action_class: 'ShiftLocations'
-    required_bits: [GREEN]
-    data: {'direction': EAST}
-  - &SHIFT-W
-    action_class: 'ShiftLocations'
-    required_bits: [GREEN]
-    data: {'direction': WEST}
-
-  - &ROT-CW
-    action_class: 'RotateLocations'
-    required_bits: [RED]
-    data: {'rot_direction': CLOCKWISE}
-  - &ROT-CCW
-    action_class: 'RotateLocations'
-    required_bits: [RED]
-    data: {'rot_direction': ANTICLOCKWISE}
-
-  # Two-colour actions.
-  - &KNIGHT-MOVE
-    action_class: 'AllowChessMove'
-    required_bits: [RED, GREEN]
-    data: {'chesspiece': KNIGHT}
-  - &CASTLE-MOVE
-    action_class: 'AllowChessMove'
-    required_bits: [RED, BLUE]
-    data: {'chesspiece': CASTLE}
-  - &BISHOP-MOVE
-    action_class: 'AllowChessMove'
-    required_bits: [GREEN, BLUE]
-    data: {'chesspiece': BISHOP}
-
-  - &HEAL-RG
-    action_class: 'GainHealth'
-    required_bits: [RED, GREEN]
-  - &HEAL-RB
-    action_class: 'GainHealth'
-    required_bits: [RED, BLUE]
-
-  # Three-colour actions.
-  - &ACQUIRE-WIN-TOKEN
-    action_class: 'AcquireWinToken'
-    required_bits: [RED, GREEN, BLUE]
-
-  # Test actions
-  - &TEST-WIN
-    action_class: 'AcquireWinToken'
-    required_bits: []
-  - &TEST-NULL
-    action_class: 'DoNothing'
-    required_bits: []
-
-# 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:
-      - *TEST-WIN
-  - &TEST-BORING
-    card_name: 'test-boring'
-    actions:
-      - *TEST-NULL
-
-cards:
-  - *TEST-WIN-CARD
-  - *TEST-BORING
-  - *TEST-BORING
-  - *TEST-BORING
-  - *TEST-WIN-CARD
-
-  - *TEST-BORING
-  - *TEST-BORING
-  - *TEST-BORING
-  - *TEST-BORING
-  - *TEST-BORING
-
-  - *TEST-BORING
-  - *TEST-BORING
-  - *TEST-BORING
-  - *TEST-BORING
-  - *TEST-BORING
-
-  - *TEST-BORING
-  - *TEST-BORING
-  - *TEST-BORING
-  - *TEST-BORING
-  - *TEST-BORING
-
-  - *TEST-WIN-CARD
-  - *TEST-BORING
-  - *TEST-BORING
-  - *TEST-BORING
-  - *TEST-WIN-CARD
index 5cde1452eacb714a72d7925fddefd7b0fe1290ae..0388d43303c26ae37981a6a5816aa3198aa64389 100644 (file)
@@ -159,5 +159,5 @@ TUNES = (
 # Puzzles, because resources can't give us file lists
 PUZZLES = (
     'chess',
-    'test'
+    'marathon'
 )