https://svonberg.org/wp-content/uploads/2025/11/martainchessstalemateai.html
I have updated the game to include the 27-Move Rule (The “Atrophy” Rule).
Changes Implemented
New Game Rule: Added a counter for movesSinceCapture. If it reaches 27, the game ends immediately.
AI Awareness:
The AI now receives the current movesSinceCapture count in its simulation.
Winning Strategy: If the AI is ahead in points and the counter is high (e.g., 25), it will prioritize non-capture moves to force the game to end and lock in its victory.
Losing Strategy: If the AI is behind, it will aggressively look for captures to reset the timer and extend the game.
UI Update: Added a “Stalemate Timer” bar below the score to show how close the game is to ending due to a lack of captures. Also changed graphics slightly to call back to Looney Pyramids.
