infinite slop

This commit is contained in:
Theo Browne
2026-02-19 23:51:56 -08:00
parent c9d68d58eb
commit 53f0543e99
4 changed files with 13 additions and 8 deletions

View File

@@ -381,8 +381,11 @@ export async function runGame(
round.scoreA = votesA * 100;
round.scoreB = votesB * 100;
round.phase = "done";
state.scores[contA.name] = (state.scores[contA.name] || 0) + round.scoreA;
state.scores[contB.name] = (state.scores[contB.name] || 0) + round.scoreB;
if (votesA > votesB) {
state.scores[contA.name] = (state.scores[contA.name] || 0) + 1;
} else if (votesB > votesA) {
state.scores[contB.name] = (state.scores[contB.name] || 0) + 1;
}
rerender();
await new Promise((r) => setTimeout(r, 2000));