Add hard mode

This commit is contained in:
Lynn
2022-01-17 23:25:44 +01:00
parent 83dc909cc4
commit d7e2f52f11
6 changed files with 97 additions and 44 deletions

View File

@@ -47,3 +47,7 @@ export function speak(
document.body.removeChild(document.getElementById(id)!);
}, 1000);
}
export function ordinal(n: number): string {
return n + ([, "st", "nd", "rd"][(n % 100 >> 3) ^ 1 && n % 10] || "th");
}