diff --git a/packages/server/src/captures.ts b/packages/server/src/captures.ts index 0564675..4bab16a 100644 --- a/packages/server/src/captures.ts +++ b/packages/server/src/captures.ts @@ -1,4 +1,4 @@ -import type { CaptureTally, Color } from '@blind-chess/shared'; +import type { CaptureTally, Color, PieceTally } from '@blind-chess/shared'; import type { Game } from './state.js'; /** @@ -8,8 +8,8 @@ import type { Game } from './state.js'; * no live board state, no opponent positions. */ export function captureTally(game: Game, viewer: Color): CaptureTally { - const byYou: Record = {}; - const byOpponent: Record = {}; + const byYou: PieceTally = {}; + const byOpponent: PieceTally = {}; for (const rec of game.moveHistory) { const captured = rec.capturedPieceType; if (!captured) continue;