X-Git-Url: https://git.ctpug.org.za/?a=blobdiff_plain;f=data%2Flocation_decks%2Ftest.yaml;h=d88978d41e94b1ed1d6d23c867ffbd350df9ff18;hb=cccf26b59edcba80bcc68b58f0d1faa487576213;hp=75f8690a88df0f0ff109eb5be162ab73a40bdd7d;hpb=3beea676f3bd4fc9101e9de1c24e8007011e952b;p=naja.git diff --git a/data/location_decks/test.yaml b/data/location_decks/test.yaml index 75f8690..d88978d 100644 --- a/data/location_decks/test.yaml +++ b/data/location_decks/test.yaml @@ -1,10 +1,62 @@ -- actions: [] -- actions: - - action_class: 'DoNothing' - required_bits: [CYAN] -- actions: - - action_class: 'DoNothing' - required_bits: [YELLOW] -- actions: - - action_class: 'DoNothing' - required_bits: [YELLOW, MAGENTA] +description: "Test location deck." + +# This field is ignored, but it's a useful place to put some action definitions +# we can reference later. +_standard_actions: + - &SET-BITS-DEFAULT + action_class: 'LoseHealthOrMSBAndSetBits' + required_bits: [] + - &GAIN-HEALTH-DEFAULT + action_class: 'GainHealthAndClearBitsOrMSB' + required_bits: [] + - &BAD-DEFAULT + action_class: 'LoseHealthOrMSB' + required_bits: [] + - &TOGGLE-BITS-C + action_class: 'ToggleBits' + required_bits: [BLUE] + - &SET-BITS-YM + action_class: 'SetBits' + required_bits: [RED, GREEN] + - &ACQUIRE-WIN-TOKEN + action_class: 'AcquireWinToken' + required_bits: [RED, GREEN, BLUE] + +cards: + - actions: + - *SET-BITS-DEFAULT + - actions: + - *BAD-DEFAULT + - *TOGGLE-BITS-C + - *SET-BITS-YM + - actions: + - action_class: 'ToggleBits' + required_bits: [RED] + - actions: + - *SET-BITS-YM + - actions: + - *BAD-DEFAULT + - *ACQUIRE-WIN-TOKEN + - actions: + - *GAIN-HEALTH-DEFAULT + - *TOGGLE-BITS-C + - actions: + - action_class: 'ShiftLocations' + required_bits: [GREEN, BLUE] + data: {'direction': NORTH} + - bits: [RED, GREEN] # colour-blind robot! + actions: + - action_class: 'ToggleBits' + required_bits: [GREEN] + - actions: + - action_class: 'AllowChessMove' + required_bits: [RED, BLUE] + data: {'chesspiece': KNIGHT} + - actions: + - action_class: 'AllowChessMove' + required_bits: [RED, BLUE] + data: {'chesspiece': BISHOP} + - actions: + - action_class: 'AllowChessMove' + required_bits: [RED, BLUE] + data: {'chesspiece': CASTLE}