Add chess premoves and time control metadata
All checks were successful
CI / Deploy / test (push) Successful in 1m15s
CI / Deploy / deploy (push) Successful in 1m11s

- pass chess room time control to the client
- add premove handling and richer chess board UI
- update join result typing for room options
This commit is contained in:
syntaxbullet
2026-04-10 10:19:33 +02:00
parent 31580df919
commit f796cac6be
5 changed files with 743 additions and 348 deletions

View File

@@ -21,7 +21,7 @@ interface GameRoomState {
roundResult: RoundResult | null;
error: string | null;
sessionReplaced: boolean;
roomOptions: { betAmount?: number };
roomOptions: { betAmount?: number; timeControl?: string };
}
export function useGameRoom(roomId: string, userId: string, role?: string, preferAs: "player" | "spectator" = "player") {