Files
chess-project/e2e/fixtures/openings/ecoD.json
T
Stefan 8ed402bbe0 feat: improve opening trainer flow and add deviation dialog
- Add tutor message guardrail to prevent rapid-fire messages
  - Track last message by move index
  - Wait for both player and opponent moves before speaking
  - Speak immediately when player deviates from theory

- Add deviation dialog with three options:
  - Continue Playing (Start Game) - transitions to game mode
  - Undo & Return to Opening - returns to theory
  - Explore This Variation - continues off-book practice

- Implement smooth game mode transition:
  - Pass opening context from trainer to game
  - Tutor welcomes player with context about their study
  - Computer makes first move if needed in starting position

- Fix generate-test-fixtures script:
  - Add safety check to prevent overwriting real data
  - Restore full opening database (12,379 openings)
  - Rebuild move index (12,377 sequences)
  - Add clear warnings about test fixtures

- Update ChessGame to accept openingContext prop
- Update Tutor to display contextual greeting in game mode

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
2025-12-08 15:05:05 +01:00

47 lines
1.3 KiB
JSON

{
"rnbqkbnr/ppp1pppp/8/3p4/3P4/3Q4/PPP1PPPP/RNB1KBNR b KQkq - 1 2": {
"src": "eco_tsv",
"eco": "D00",
"moves": "1. d4 d5 2. Qd3",
"name": "Amazon Attack"
},
"rnbqkbnr/ppp1pppp/8/3p4/3PP3/8/PPP2PPP/RNBQKBNR b KQkq - 0 2": {
"src": "eco_tsv",
"eco": "D00",
"moves": "1. d4 d5 2. e4",
"name": "Blackmar-Diemer Gambit",
"scid": "D00l",
"aliases": {
"scid": "Blackmar-Diemer Gambit (BDG): 2.e4",
"ct": "Blackmar-Diemer Gambit, General",
"chronos": "Blackmar gambit"
}
},
"rnbqkb1r/ppp1pppp/5n2/8/3Pp3/2N5/PPP2PPP/R1BQKBNR w KQkq - 2 4": {
"src": "eco_tsv",
"eco": "D00",
"moves": "1. d4 d5 2. e4 dxe4 3. Nc3 Nf6",
"name": "Blackmar-Diemer Gambit",
"aliases": {
"chessGraph": "Vienna Variation, BDG",
"icsbot": "Vienna Variation, BDG "
}
},
"rnbqkbnr/ppp1pppp/8/8/3Pp3/8/PPP2PPP/RNBQKBNR w KQkq - 0 3": {
"src": "scid",
"eco": "D00",
"moves": "1. d4 d5 2. e4 dxe4",
"name": "Blackmar-Diemer Gambit (BDG): 2.e4 dxe4",
"scid": "D00l"
},
"rnbqkb1r/ppp1pppp/5n2/8/3P4/2N2p2/PPP3PP/R1BQKBNR w KQkq - 0 5": {
"src": "eco_tsv",
"eco": "D00",
"moves": "1. d4 d5 2. e4 dxe4 3. Nc3 Nf6 4. f3 exf3",
"name": "Blackmar-Diemer Gambit Accepted",
"scid": "D00v",
"aliases": {
"scid": "Blackmar-Diemer: Accepted"
}
}
}