Add FEN support, DebugPanel, and improve piece color contrast#82
Open
deckhand-agent wants to merge 6 commits into
Open
Add FEN support, DebugPanel, and improve piece color contrast#82deckhand-agent wants to merge 6 commits into
deckhand-agent wants to merge 6 commits into
Conversation
Add engine/fixtures.py with predefined chess positions for testing: - Basic positions (starting, empty) - Checkmate scenarios - Special moves (en passant, castling) - Check scenarios - Pawn promotion positions - Stalemate and endgame positions
- Add load_fen() method to parse FEN strings and set board state - Add to_fen() method to export current position as FEN - Add WebSocket callbacks for load_fen, load_fixture, get_fixtures - Track en_passant_target for FEN compatibility - Include turn and FEN in game state JSON - Update en passant logic to work with FEN-loaded positions - Convert indentation from tabs to spaces
- Add loadFen() to load arbitrary FEN positions - Add loadFixture() to load named test fixtures - Add getFixtures() to request fixture list from server - Add reactive refs for turn, currentFen, and fixtures - Update data watcher to handle new state fields
- Display current game state (turn, player, move number) - Show current FEN with copy-to-clipboard button - FEN input field to load arbitrary positions - Dropdown with categorized test fixtures - Reset board button - Dark theme styling to match app
- Add DebugPanel component with toggle visibility - Press D key to show/hide debug panel - Add sidebar layout for debug panel - Ignore keypress when typing in input fields
Change light pieces from blue-gray (#8398B9) to warm amber (#E8C87A) and darken dark pieces to a deeper navy (#1E3A5F), making the two teams clearly distinguishable at a glance. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
engine/board.py) and the Vue frontend (src/composables/chess.js,src/components/ChessBoard.vue), allowing board positions to be loaded from and exported as FEN notationengine/fixtures.pywith a library of FEN positions organized by category (openings, endgames, special moves, etc.) for testing and debuggingsrc/components/DebugPanel.vueintegrated intoApp.vue, providing a UI for loading FEN positions, browsing fixture categories, and inspecting board state during developmentsrc/assets/base.cssTest plan
🤖 Generated with Claude Code