"use client"; import { GameMode, Difficulty } from "../types/chess"; interface GameControlsProps { mode: GameMode; difficulty: Difficulty; onModeChange: (mode: GameMode) => void; onDifficultyChange: (difficulty: Difficulty) => void; onNewGame: () => void; onUndo: () => void; onSurrender: () => void; canUndo: boolean; isPlaying: boolean; } export default function GameControls({ mode, difficulty, onModeChange, onDifficultyChange, onNewGame, onUndo, onSurrender, canUndo, isPlaying, }: GameControlsProps) { const modes: GameMode[] = ["人vsA*", "人vsDeepseek", "A*vsDeepseek"]; const difficulties: Difficulty[] = ["容易", "一般", "困难"]; return (
{/* 模式和难度选择 - 标签和下拉框同一行 */}
{/* 操作按钮 */}
); }