This commit is contained in:
Theo Browne
2026-02-20 04:26:14 -08:00
parent 5e3b4b0279
commit 593ad125ff
6 changed files with 37 additions and 3 deletions

View File

@@ -71,6 +71,7 @@ export type GameState = {
active: RoundState | null;
scores: Record<string, number>;
done: boolean;
isPaused: boolean;
};
// ── OpenRouter ──────────────────────────────────────────────────────────────
@@ -261,6 +262,10 @@ export async function runGame(
rerender: () => void,
) {
for (let r = 1; r <= runs; r++) {
while (state.isPaused) {
await new Promise((resolve) => setTimeout(resolve, 1000));
}
const shuffled = shuffle([...MODELS]);
const prompter = shuffled[0]!;
const contA = shuffled[1]!;