diff --git a/apps/web/src/routes/kripke/components/template.svelte b/apps/web/src/routes/kripke/components/template.svelte index 30692b7..b5e39ab 100644 --- a/apps/web/src/routes/kripke/components/template.svelte +++ b/apps/web/src/routes/kripke/components/template.svelte @@ -5,6 +5,7 @@ import * as Dialog from "$lib/components/ui/dialog"; import { type Formula, getFrame, + isomorphic, nontrivials, tryParse, validWorlds, @@ -65,7 +66,9 @@ function evaluate() { const res: number[] = [frames.length]; for (const move of moves) { if (move.type === "guess") { - frames = frames.filter((f) => f.id !== move.frameId); + const frameId = isomorphic[move.frameId]; + if (move.correct) frames = [{ id: frameId, frame: getFrame(frameId) }]; + else frames = frames.filter((f) => f.id !== frameId); } if (move.type === "check") { if (move.valid < 0 || move.valid > 4) return undefined;