From: Simon Cross Date: Sat, 17 May 2014 17:07:47 +0000 (+0200) Subject: Not exactly Kasparov. X-Git-Tag: 0.1~68 X-Git-Url: https://git.ctpug.org.za/?a=commitdiff_plain;h=acf8d29db29528c03c3d253b299f344be2fba29c;p=naja.git Not exactly Kasparov. --- diff --git a/data/location_decks/puzzles/chess.yaml b/data/location_decks/puzzles/chess.yaml new file mode 100644 index 0000000..e43c182 --- /dev/null +++ b/data/location_decks/puzzles/chess.yaml @@ -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