dje-dev / Ceres

Ceres - an MCTS chess engine for research and recreation
GNU General Public License v3.0
153 stars 23 forks source link

Add rook placement fields and update FEN handling for Chess960 #87

Closed lepned closed 2 weeks ago

lepned commented 2 weeks ago

Added new fields to track initial rook placements in PositionMiscInfo. Updated MGChessPositionConverter, MGPosition, and MGPositionConstants to handle new rook placement fields. Introduced a new constructor in PositionMiscInfo for initializing these fields. Added GetCastlingFileChar helper method in FENGenerator and updated it to use new fields for FEN generation. Modified FENParser to parse and set new rook placement fields for proper Chess960 handling.