fix: NCWF-2 bugs and desing fixes (#7)
Co-authored-by: Lala, Shahd <Shahd.Lala@sybit.de> Reviewed-on: #7
This commit was merged in pull request #7.
This commit is contained in:
@@ -1,5 +1,10 @@
|
||||
export type GameTurn = 'white' | 'black';
|
||||
|
||||
export interface ClockState {
|
||||
whiteRemainingMs: number;
|
||||
blackRemainingMs: number;
|
||||
}
|
||||
|
||||
export type GameStatus =
|
||||
| 'started'
|
||||
| 'check'
|
||||
@@ -26,6 +31,7 @@ export interface GameState {
|
||||
moves: string[];
|
||||
undoAvailable: boolean;
|
||||
redoAvailable: boolean;
|
||||
clock: ClockState | null;
|
||||
}
|
||||
|
||||
export interface GameFull {
|
||||
|
||||
Reference in New Issue
Block a user