X-Git-Url: https://git.ctpug.org.za/?a=blobdiff_plain;f=data%2Flocation_decks%2Fpuzzles%2Fchess.yaml;h=42345731715aba6086110591ea702b51ce2872fe;hb=d1209c626b8eeb0f819d7af60c1d6cb04834d3cc;hp=03528df01df18071fd39ba4a7bde91f3adc207be;hpb=d93cb8cf618c2f77c4a2fe278b41708a5c5556dd;p=naja.git diff --git a/data/location_decks/puzzles/chess.yaml b/data/location_decks/puzzles/chess.yaml index 03528df..4234573 100644 --- a/data/location_decks/puzzles/chess.yaml +++ b/data/location_decks/puzzles/chess.yaml @@ -1,33 +1,70 @@ description: "Kasparov to F3" puzzle: true +# This field is ignored, but it's a useful place to put some action definitions +# we can reference later. +_action_defitions: + - &PHYRRIC-VICTORY + action_class: GenericBits + required_bits: [RED, GREEN, BLUE] + data: + clear: [NORTH, SOUTH, EAST, WEST, RED, GREEN, BLUE, MSB] + acquire_win: true + lose_health: true + once: 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: AllowChessMove + required_bits: [] + data: + chesspiece: BISHOP + - *PHYRRIC-VICTORY + - &CHESS-WIN-CARD-CASTLE + card_name: 'chess-win-rook' + actions: + - action_class: AllowChessMove + required_bits: [] + data: + chesspiece: CASTLE + - *PHYRRIC-VICTORY + - &CHESS-WIN-CARD-KNIGHT + card_name: 'chess-win-knight' + actions: + - action_class: AllowChessMove + required_bits: [] + data: + chesspiece: KNIGHT + - *PHYRRIC-VICTORY + - &CHESS-WIN-CARD-SEPPUKU + card_name: 'chess-win-seppuku' actions: - - action_class: 'AcquireWinToken' - required_bits: [RED, GREEN, BLUE] + - action_class: LoseHealthOrMSB + required_bits: [] + - *PHYRRIC-VICTORY - &TEST-BORING card_name: 'test-boring' actions: - - action_class: 'DoNothing' + - action_class: DoNothing required_bits: [] - &CHESS-CENTRE card_name: 'chess-centre' bits: [NORTH, SOUTH, EAST, WEST] actions: - - action_class: 'SetBits' + - action_class: SetBits required_bits: [] - - action_class: 'AllowChessMove' + - 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: 'GenericBits' + - action_class: GenericBits required_bits: [] data: toggle: [RED] @@ -36,7 +73,7 @@ _card_definitions: card_name: 'chess-south' bits: [SOUTH, EAST, WEST, RED, GREEN] actions: - - action_class: 'GenericBits' + - action_class: GenericBits required_bits: [] data: toggle: [RED, GREEN] @@ -45,7 +82,7 @@ _card_definitions: card_name: 'chess-east' bits: [NORTH, SOUTH, EAST, RED, BLUE] actions: - - action_class: 'GenericBits' + - action_class: GenericBits required_bits: [] data: toggle: [RED, BLUE] @@ -55,18 +92,18 @@ _card_definitions: card_name: 'chess-west' bits: [NORTH, SOUTH, WEST, BLUE, MSB] actions: - - action_class: 'GenericBits' + - action_class: GenericBits required_bits: [] data: toggle: [BLUE, MSB] 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 @@ -86,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