diff --git a/packages/game/src/gameDef.ts b/packages/game/src/gameDef.ts index 02e1c9b..fbabaad 100644 --- a/packages/game/src/gameDef.ts +++ b/packages/game/src/gameDef.ts @@ -373,20 +373,7 @@ export type Game< GS extends GameStateBase = GameStateBase, PMT extends MoveTypesBase = any, BMT extends MoveTypesBase = any, - // PMT extends MoveTypesBase = MoveTypesBase, - // BMT extends MoveTypesBase = MoveTypesBase, - // PM = any, - // BM = any, - // PM extends Record> = Record< - // string, - // PlayerMove - // >, - // BM extends Record> = Record< - // string, - // BoardMove - // >, > = { - // version: string; initialBoards: InitialBoard; // There is a separate function for the `playerboard` for games that support adding a // player into an ongoing match. @@ -399,11 +386,6 @@ export type Game< gameSettings?: GameSettings; gamePlayerSettings?: GamePlayerSettings; - // Do we have `score`s for this game? This means for instance that we can show - // a leaderboard. - - // mainScoreStat ?: - // Games can customize the match score representation using this hook. getMatchScoreText?: (options: GetMatchScoreTextOptions) => string; @@ -428,10 +410,6 @@ export type Game< playerStats?: GameStats; matchStats?: GameStats; - - // Should we end a player's turn when they make a move? - // Defaults to `true`. - // playerMoveEndsTurn?: boolean; }; /* @@ -443,13 +421,9 @@ export type Game_< GS extends GameStateBase = GameStateBase, PMT extends MoveTypesBase = MoveTypesBase, BMT extends MoveTypesBase = MoveTypesBase, -> = Omit< - Game, - "playerStats" | "matchStats" // | "playerMoveEndsTurn" -> & { +> = Omit, "playerStats" | "matchStats"> & { playerStats?: GameStats_; matchStats?: GameStats_; - // playerMoveEndsTurn: boolean; }; function normalizeArray, K extends keyof T>( @@ -504,10 +478,7 @@ export function parseGame< const playerStats = normalizeStats(game.playerStats); const matchStats = normalizeStats(game.matchStats); - // Add the default value. - // const { playerMoveEndsTurn = true } = game; - - return { ...game, playerStats, matchStats }; //, playerMoveEndsTurn }; + return { ...game, playerStats, matchStats }; } // Game Manifest