Skip to content

Commit 8bf6fea

Browse files
committed
Cifra: Stripping was working oppositely
1 parent 53155e9 commit 8bf6fea

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
@@ -681,7 +681,7 @@ export class CifraGame extends GameBase {
681681
};
682682
if (opts !== undefined && opts.strip) {
683683
// only strip if we're still in the setup window
684-
if (state.stack.length === 3 && opts.player !== 1) {
684+
if (state.stack.length === 3 && opts.player !== 2) {
685685
state.stack[2]._results = [];
686686
state.stack[2].lastmove = "?";
687687
state.stack[2].board.clear();

0 commit comments

Comments
 (0)