kripke: prevent answering isomorphic frames again

This commit is contained in:
2025-09-23 20:39:24 +09:00
parent 25a904a89a
commit ffb66d8719

View File

@@ -71,7 +71,8 @@ let canGuess = $derived.by(() => {
if (status !== "playing" || remainingRelations !== 0) return false; if (status !== "playing" || remainingRelations !== 0) return false;
const frameId = getId(frame); const frameId = getId(frame);
return !moves.some( return !moves.some(
(move) => move.type === "guess" && move.frameId === frameId, (move) =>
move.type === "guess" && isomorphic[move.frameId] === isomorphic[frameId],
); );
}); });