fix(vchess): fix sound bug + update engine AI#470
Open
NVHoang99 wants to merge 10 commits intoJ2TEAM:mainfrom
Open
fix(vchess): fix sound bug + update engine AI#470NVHoang99 wants to merge 10 commits intoJ2TEAM:mainfrom
NVHoang99 wants to merge 10 commits intoJ2TEAM:mainfrom
Conversation
…ents, and assets - Added constants for default clock settings. - Created main game view with state management and UI components. - Introduced game rules documentation and piece images. - Implemented sound effects for game actions. - Set up AI worker for move calculations and game logic. - Established engine for game state management and move validation.
…mentation - Changed gameState to use shallowRef for improved performance. - Updated kingInCheckSquare logic to reference the correct game state structure. - Added new rule regarding the king's movement when in check to the documentation. - Introduced mailbox structure for better state representation in the engine.
…shing - AI worker uses Zobrist hashing for state keys. - VChessState stores hash for faster move validation. - Moves: repetition handling and transposition table tweaks. - Init/clone paths support incremental hash updates.
- Added new composables for element size and media queries to enhance layout adaptability. - Updated PGN handling to format history for better move display. - Refactored board state management to synchronize with mailbox for efficient piece manipulation. - Removed deprecated clipboard import and streamlined PGN import functionality. - Enhanced eagle piece mechanics and UI interactions for improved gameplay experience.
- Introduced detailed AI search error handling (worker crashes, search exceptions). - Added retry functionality for AI moves, improving user experience during AI interactions. - Updated AI worker to support debug messages for iterative ply processing. - Enhanced the game state management to reflect AI search outcomes and errors in the UI. - Added piece credits and attribution in the rules documentation for better transparency.
- Added board editor functionality for custom piece placement and game setup. - Implemented AI move request handling for solo mode, improving gameplay experience. - Updated game status logic to account for checkmate scenarios, including invalid states. - Enhanced sound management to ensure audio context resumes correctly during interactions. - Improved FEN documentation for clarity on game state representation.
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.
Mô tả thay đổi
PR tập trung sửa lỗi trên vChess, đồng thời cải tiến code (refactor/readability) và bổ sung một số tính năng nhỏ ( âm thanh, UI).
Loại thay đổi
src/views/<tên-trang>/)Checklist
pnpm lintvà không có lỗipnpm buildthành côngmeta.tstrong thư mục trang (nếu tạo trang mới) — bỏ qua nếu không tạo trang mới