Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions game.ts
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,8 @@ export function isRealString(s: string, minLength = 5): boolean {
export function cleanResponse(text: string): string {
const trimmed = text.trim();
if ((trimmed.startsWith('"') && trimmed.endsWith('"')) ||
(trimmed.startsWith("'") && trimmed.endsWith("'"))) {
(trimmed.startsWith("'") && trimmed.endsWith("'")) ||
(trimmed.startsWith("“") && trimmed.endsWith("”"))) {
return trimmed.slice(1, -1);
}
return trimmed;
Expand Down Expand Up @@ -276,7 +277,7 @@ export async function runGame(
}

let endRound = startRound + runs - 1;

for (let r = startRound; r <= endRound; r++) {
while (state.isPaused) {
await new Promise((resolve) => setTimeout(resolve, 1000));
Expand Down