@@ -200,4 +200,22 @@ describe('trash order chop move', () => {
200
200
const action = await game . take_action ( ) ;
201
201
ExAsserts . objHasProperties ( action , { type : ACTION . DISCARD , target : game . state . hands [ PLAYER . ALICE ] [ 3 ] } , `Expected (Discard slot 4) but got ${ logPerformAction ( action ) } ` ) ;
202
202
} ) ;
203
+
204
+ it ( 'will not TOCM trash' , async ( ) => {
205
+ const game = setup ( HGroup , [
206
+ [ 'xx' , 'xx' , 'xx' , 'xx' , 'xx' ] ,
207
+ [ 'r5' , 'p3' , 'g4' , 'p4' , 'y2' ] ,
208
+ [ 'r1' , 'y1' , 'g1' , 'p2' , 'g2' ]
209
+ ] , {
210
+ level : { min : 14 } ,
211
+ play_stacks : [ 2 , 2 , 4 , 1 , 4 ] ,
212
+ starting : PLAYER . CATHY
213
+ } ) ;
214
+
215
+ takeTurn ( game , 'Cathy clues 1 to Alice (slots 3,4)' ) ;
216
+
217
+ // Alice should discard slot 3 to not chop move yellow 2.
218
+ const action = await game . take_action ( ) ;
219
+ ExAsserts . objHasProperties ( action , { type : ACTION . DISCARD , target : game . state . hands [ PLAYER . ALICE ] [ 2 ] } , `Expected (Discard slot 3) but got ${ logPerformAction ( action ) } ` ) ;
220
+ } ) ;
203
221
} ) ;
0 commit comments