Skip to content

fix(vchess): fix sound bug + update engine AI#470

Open
NVHoang99 wants to merge 10 commits intoJ2TEAM:mainfrom
NVHoang99:feat/vchess
Open

fix(vchess): fix sound bug + update engine AI#470
NVHoang99 wants to merge 10 commits intoJ2TEAM:mainfrom
NVHoang99:feat/vchess

Conversation

@NVHoang99
Copy link
Copy Markdown

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

  • Thêm trang mới (src/views/<tên-trang>/)
  • Sửa lỗi (bug fix)
  • Cải tiến (enhancement)
  • Khác

Checklist

  • Đã chạy pnpm lint và không có lỗi
  • Đã chạy pnpm build thành công
  • Đã tạo file meta.ts trong thư mục trang (nếu tạo trang mới) — bỏ qua nếu không tạo trang mới
  • Tuân thủ Design System

NVHoang99 and others added 10 commits March 30, 2026 01:17
…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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant