shared/constants/game.ts
Player stats inteface
Properties |
boosterScore |
boosterScore:
|
Type : number
|
booster score |
correctAnswers |
correctAnswers:
|
Type : number
|
number of correct answers |
rounds |
rounds:
|
per round stats |
score |
score:
|
Type : number
|
score |
wrongAnswers |
wrongAnswers:
|
Type : number
|
number of wrong answers |
interface ReadonlyLiveGameEmptyPlayerResult {
/** score */
readonly score: number;
/** booster score */
readonly boosterScore: number;
/** number of correct answers */
readonly correctAnswers: number;
/** number of wrong answers */
readonly wrongAnswers: number;
/** per round stats */
readonly rounds: readonly [][];
};
/** empty player stats const */
export const LIVE_GAME_EMPTY_PLAYER_RESULT: ReadonlyLiveGameEmptyPlayerResult = {
score: 0,
boosterScore: 0,
correctAnswers: 0,
wrongAnswers: 0,
rounds: [],
};