Skip to content

Commit

Permalink
Fix a silly bug introduced in #177
Browse files Browse the repository at this point in the history
  • Loading branch information
ekzhang committed Dec 29, 2024
1 parent f4b77d9 commit e551587
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/util.js
Original file line number Diff line number Diff line change
Expand Up @@ -310,7 +310,7 @@ export function initializeDeck(deck, gameMode) {
// Remove all cards except those with solid shading.
return deck.filter((card) => card[2] === "0");
}
return deck;
return deck.slice();
}

export function computeState(gameData, gameMode = "normal") {
Expand Down

0 comments on commit e551587

Please sign in to comment.