diff --git a/package-lock.json b/package-lock.json index 4d3799c..8e0e2c1 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "chess-solver", - "version": "1.2.0", + "version": "1.2.1", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "chess-solver", - "version": "1.2.0", + "version": "1.2.1", "license": "GPL-3.0-only", "dependencies": { "@fontsource/dm-sans": "^5.3.0", diff --git a/package.json b/package.json index fa11d40..522c8d3 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "chess-solver", "private": true, - "version": "1.2.0", + "version": "1.2.1", "description": "Desktop chess analysis tool powered by Stockfish 18 — set up any position and get engine-recommended moves with evaluations, tactical motifs, and principal variations.", "author": "ccharafeddine", "license": "GPL-3.0-only", diff --git a/src/App.tsx b/src/App.tsx index 1564759..a2ce9fa 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -1,4 +1,4 @@ -import { useState, useEffect, useMemo, useRef, useCallback } from 'react'; +import { useState, useEffect, useMemo, useRef, useCallback } from 'react'; import { Chess, validateFen } from 'chess.js'; import Board from './components/Board'; import PieceSelector from './components/PieceSelector'; @@ -88,7 +88,7 @@ export default function App() { const [orientation, setOrientation] = useState<'white' | 'black'>('white'); // Analysis output is keyed by the FEN it was computed for. Results for any // other position are simply not displayed, so stale engine output can never - // be shown against the wrong board — no token bookkeeping required. + // be shown against the wrong board — no token bookkeeping required. const [analysisResult, setAnalysisResult] = useState(null); const [engineWarning, setEngineWarning] = useState(null); const [analysisMeta, setAnalysisMeta] = useState({ depth: 0, nps: 0, threads: 0 }); @@ -208,7 +208,7 @@ export default function App() { engineRef.current.analyze(analysisFen, (lines: AnalysisLine[], meta: AnalysisMeta, isFinal: boolean) => { setAnalysisMeta(meta); - // Drop lines that are not legal in this position — a defense against + // Drop lines that are not legal in this position — a defense against // stale engine output. Only applicable when chess.js can load the // position at all; for editor-built positions it can't validate // (e.g. pawns on the back rank), trust the engine's own legality. @@ -234,7 +234,7 @@ export default function App() { setAnalysisResult({ fen: analysisFen, lines: [], final: true }); setEngineWarning({ fen: analysisFen, - message: 'The engine did not return analysis for this position. Click ↻ to retry.', + message: 'The engine did not return analysis for this position. Click ↻ to retry.', }); return; } @@ -420,7 +420,7 @@ export default function App() { aria-label="Toggle dark mode" > - {theme === 'light' ? '☀' : '☾'} + {theme === 'light' ? '☀' : '☾'} @@ -465,17 +465,6 @@ export default function App() { onSelectPiece={setSelectedPiece} selectedPiece={selectedPiece} /> -
@@ -494,6 +483,17 @@ export default function App() { onHighlightMove={(from, to) => setHighlightSquares({ from, to })} onClearHighlight={() => setHighlightSquares(null)} /> +