Skip to content

Commit 99c57fb

Browse files
committed
Cifra: Fix 2nd-move Dash stripping
1 parent aa106bb commit 99c57fb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/games/cifra.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -753,7 +753,7 @@ export class CifraGame extends GameBase {
753753
};
754754
if (opts !== undefined && opts.strip) {
755755
// only strip if we're still in the setup window
756-
if (state.stack.length === 3 && opts.player !== 2) {
756+
if ( (this.variants.includes("sum") || this.variants.includes("king")) && (state.stack.length === 3 && opts.player !== 2) ) {
757757
state.stack[2]._results = [];
758758
state.stack[2].lastmove = "?";
759759
state.stack[2].board.clear();

0 commit comments

Comments
 (0)