Skip to content

Commit 9d94213

Browse files
committed
fix lint
1 parent ae8b20a commit 9d94213

File tree

2 files changed

+4
-7
lines changed

2 files changed

+4
-7
lines changed

src/conventions/h-group/take-action.js

+3-6
Original file line numberDiff line numberDiff line change
@@ -167,9 +167,8 @@ export function find_all_discards(game, playerIndex) {
167167
// this code is here to support TOCMs
168168
const all_discards = [{ misplay: false, order: discardable }];
169169
for (const c of trash_cards) {
170-
if (c != discardable) {
170+
if (c != discardable)
171171
all_discards.push({misplay: false, order: c});
172-
}
173172
}
174173
return positional !== undefined ? [positional] : (discardable ? all_discards : []);
175174
}
@@ -617,9 +616,8 @@ export async function take_action(game) {
617616
const next_chop = me.chop(state.hands[player_check_index]);
618617
const chop_value = cardValue(state, me, state.deck[next_chop], next_chop);
619618
const new_chop_value = me.withThoughts(next_chop, (draft) => { draft.chop_moved = true; }).chopValue(state, nextPlayerIndex);
620-
if (new_chop_value < chop_value && chop_value >= 1) {
619+
if (new_chop_value < chop_value && chop_value >= 1)
621620
return { tableID, type: ACTION.DISCARD, target: trash_orders[i] };
622-
}
623621
player_check_index = state.nextPlayerIndex(player_check_index);
624622
}
625623
}
@@ -721,9 +719,8 @@ export async function take_action(game) {
721719
const next_chop = me.chop(state.hands[player_check_index]);
722720
const chop_value = cardValue(state, me, state.deck[next_chop], next_chop);
723721
const new_chop_value = me.withThoughts(next_chop, (draft) => { draft.chop_moved = true; }).chopValue(state, nextPlayerIndex);
724-
if (new_chop_value < chop_value && chop_value >= 1) {
722+
if (new_chop_value < chop_value && chop_value >= 1)
725723
return { tableID, type: ACTION.DISCARD, target: trash_orders[i] };
726-
}
727724
player_check_index = state.nextPlayerIndex(player_check_index);
728725
}
729726
}

test/h-group/level-14.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { describe, it } from 'node:test';
22
import { strict as assert } from 'node:assert';
33
import { ACTION } from '../../src/constants.js';
4-
import { PLAYER, setup, takeTurn, expandShortCard, VARIANTS } from '../test-utils.js';
4+
import { PLAYER, setup, takeTurn, expandShortCard } from '../test-utils.js';
55
import * as ExAsserts from '../extra-asserts.js';
66
import HGroup from '../../src/conventions/h-group.js';
77
// import { find_clues } from '../../src/conventions/h-group/clue-finder/clue-finder.js';

0 commit comments

Comments
 (0)