feat: update compound calculation

feat: add "will my compound break" page
This commit is contained in:
2025-07-29 16:40:54 +02:00
parent f2a18cafe8
commit 9ca30f412e
2 changed files with 69 additions and 0 deletions

View File

@@ -69,5 +69,8 @@ export function hashChord(actions: number[]) {
for (let i = 0; i < 16; i++) {
hash = Math.imul(hash ^ view.getUint8(i), 16777619);
}
if ((hash & 0xff) === 0xff) {
hash ^= 0xff;
}
return hash & 0x3fff_ffff;
}