@@ -183,22 +183,21 @@ describe('trash order chop move', () => {
183
183
assert . ok ( ! game . common . thoughts [ game . state . hands [ PLAYER . CATHY ] [ 4 ] ] . chop_moved ) ;
184
184
} ) ;
185
185
186
- it ( 'performs a TOCM if the card can\'t be saved otherwise' , async ( ) => {
186
+ it ( 'performs a TOCM for good cards if it can\'t otherwise cm ' , async ( ) => {
187
187
const game = setup ( HGroup , [
188
188
[ 'xx' , 'xx' , 'xx' , 'xx' , 'xx' ] ,
189
- [ 'r3 ' , 'b3 ' , 'y1 ' , 'g1 ' , 'g3 ' ] ,
190
- [ 'g4 ' , 'r4 ' , 'y4 ' , 'g4 ' , 'u5 ' ]
189
+ [ 'r5 ' , 'p3 ' , 'g4 ' , 'p4 ' , 'y4 ' ] ,
190
+ [ 'r1 ' , 'y1 ' , 'g1 ' , 'p2 ' , 'g2 ' ]
191
191
] , {
192
192
level : { min : 14 } ,
193
- play_stacks : [ 1 , 1 , 1 , 1 , 1 ] ,
194
- starting : PLAYER . ALICE ,
195
- variant : VARIANTS . NULL
193
+ play_stacks : [ 2 , 2 , 4 , 1 , 4 ] ,
194
+ starting : PLAYER . CATHY
196
195
} ) ;
197
196
198
- takeTurn ( game , 'Alice clues 1 to Bob (slots 3,4)' ) ;
197
+ takeTurn ( game , 'Cathy clues 1 to Alice (slots 3,4)' ) ;
199
198
200
- // Bob should discard slot 4 to chop move null 5 .
199
+ // Alice should discard slot 4 to chop move yellow 3 .
201
200
const action = await game . take_action ( ) ;
202
- ExAsserts . objHasProperties ( action , { type : ACTION . DISCARD , target : game . state . hands [ PLAYER . BOB ] [ 3 ] } , `Expected (Discard slot 4) but got ${ logPerformAction ( action ) } ` ) ;
201
+ ExAsserts . objHasProperties ( action , { type : ACTION . DISCARD , target : game . state . hands [ PLAYER . ALICE ] [ 3 ] } , `Expected (Discard slot 4) but got ${ logPerformAction ( action ) } ` ) ;
203
202
} ) ;
204
203
} ) ;
0 commit comments