feat : open played game in analysis

This commit is contained in:
GuillaumeSD
2024-03-20 03:50:20 +01:00
parent aca8910bab
commit 32fc196e74
8 changed files with 118 additions and 33 deletions

View File

@@ -43,7 +43,12 @@ export default function GameSettingsDialog({ open, onClose }: Props) {
const handleGameStart = () => {
onClose();
resetGame();
resetGame({
whiteName:
playerColor === Color.White ? "You" : `Stockfish level ${skillLevel}`,
blackName:
playerColor === Color.Black ? "You" : `Stockfish level ${skillLevel}`,
});
setIsGameInProgress(true);
};