Complete tactic recognition module with tests and real-time integration
- Add comprehensive test suite (20 tests) for tactic detection - Fix pawn detection threshold bug (200 -> 100 centipawns) - Add error handling to uciToSan for invalid moves - Integrate tactical data into Tutor component for real-time feedback - Pass missedTactics from ChessGame to Tutor via props - Update LLM prompt to explain missed tactical opportunities - Fix Jest configuration to handle react-markdown ESM issues - All 50 tests passing
This commit is contained in:
@@ -45,6 +45,7 @@ describe('Tutor', () => {
|
||||
evalP0={null}
|
||||
evalP2={null}
|
||||
openingData={null}
|
||||
missedTactics={null}
|
||||
onAnalysisComplete={() => {}}
|
||||
apiKey="test-api-key"
|
||||
personality={{
|
||||
@@ -54,6 +55,7 @@ describe('Tutor', () => {
|
||||
}}
|
||||
language="en"
|
||||
playerColor="white"
|
||||
onCheckComputerMove={() => {}}
|
||||
/>
|
||||
);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user