import { territory } from '@/game/board'; /** The map shows public stack counts without reading any hidden token face. */ export function TerrorBoardMarkers({ tokens }: { tokens: readonly { status: string; location: string | null }[]; }) { const groups = new Map(); for (const token of tokens) if (token.status === 'placed' && token.location) groups.set(token.location, (groups.get(token.location) ?? 0) + 1); return [...groups].map(([id, count]) => { const place = territory(id); const label = `${count} hidden Terror token${count === 1 ? '' : 's'} in ${place.name}`; return ( {label} {count > 1 && } {count === 1 ? 'T' : `T${count}`} ); }); }