Harden chess against forged packets and lost moves

- Chain values count once and in order; moves need a fresh value
- Game info carries the inviter's chain value; colours come from the invite
- Accepters keep their seed; unconfirmed sends keep the move and resend it
- Check draw accept and timeout claim preconditions; drop unused minutes
- Notify in the background, keep own games under the cap, 16-bit ply
- Sanitise adopted castling rights, guard incoming handling
- Localised square labels and translations for the new strings
- Restore two Korean strings changed by mistake
This commit is contained in:
zjs81 committed 2026-11-22 17:44:28 -07:00
1 parent adead644c7
commit c2877f6875
53 files changed
+1977 -306

No files matched your search

+8 -1
View File
@@ -4042,5 +4042,12 @@
"chess_notifyResigned": "{name} ha abbandonato. Hai vinto.",
"chess_notifyDrawOffered": "{name} offre la patta",
"chess_notifyDrawAccepted": "{name} ha accettato la patta",
"chess_notifyTimeout": "{name} ha rivendicato la vittoria a tempo"
"chess_notifyTimeout": "{name} ha rivendicato la vittoria a tempo",
"chess_rowChallenge": "{inviter} ha sfidato {target}",
"chess_statusPlayersUnchecked": "Giocatori non confermati: questo telefono non ha sentito l'invito.",
"chess_statusMoveUnconfirmed": "La tua mossa potrebbe non essere partita. Tocca «Chiedi aggiornamento» per inviarla di nuovo.",
"chess_pieceKing": "Re",
"chess_piecePawn": "Pedone",
"chess_squareWhitePiece": "{square}: {piece}, bianco",
"chess_squareBlackPiece": "{square}: {piece}, nero"
}