export interface ChessState {
    fen: string;
    players: { white: string; black: string };
    moveHistory: string[];
    status: "playing" | "checkmate" | "stalemate" | "draw" | "forfeit";
    winner: string | null;
}

export type ChessAction =
    | { type: "move"; from: string; to: string; promotion?: string }
    | { type: "forfeit" };
