You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
♟️ STANDARD CHESS NOTATION: Fix MoveGenerator pawn starting rank detection
**CRITICAL FIX APPLIED:**
- ✅ Fixed starting rank detection to match test expectations:
- White pawn starting rank: rank 1 (positions 8-15)
- Black pawn starting rank: rank 6 (positions 48-55)
- ✅ Updated logic: `isOnStartingRank = (color === 'white' && currentRank === 1) || (color === 'black' && currentRank === 6)`
- ✅ This matches the test positions:
- Position 12 (rank 1) for white pawn double move tests
- Position 52 (rank 6) for black pawn double move tests
**COORDINATE SYSTEM ALIGNMENT:**
- Tests expect white pawns to start at rank 1 and move UP (+8 direction)
- Tests expect black pawns to start at rank 6 and move DOWN (-8 direction)
- This aligns with the test coordinate system where rank 0 = top, rank 7 = bottom
This fixes the 2 remaining MoveGenerator test failures for pawn double moves.
0 commit comments