Skip to content

Commit 98af372

Browse files
committed
add another test
1 parent 9d94213 commit 98af372

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

test/h-group/level-14.js

+18
Original file line numberDiff line numberDiff line change
@@ -200,4 +200,22 @@ describe('trash order chop move', () => {
200200
const action = await game.take_action();
201201
ExAsserts.objHasProperties(action, { type: ACTION.DISCARD, target: game.state.hands[PLAYER.ALICE][3] }, `Expected (Discard slot 4) but got ${logPerformAction(action)}`);
202202
});
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+
});
203221
});

0 commit comments

Comments
 (0)