r/chessprogramming • u/AutoModerator • Oct 05 '26
Technical Chess Engine Development Help Thread (Week 41)
Welcome to the weekly /r/chessprogramming Engine Dev Help Thread.
Ask beginner and intermediate chess engine development questions here: move generation, search, evaluation, UCI, perft, debugging, testing, NNUE, or anything else related to building engines.
Good questions include code, FENs, logs, benchmarks, or a clear explanation of what you tried.
Project links are fine when you want technical feedback, not promotion.
Be helpful. Don’t dunk on beginners.
3
Upvotes
View all comments
Show parent comment
2
u/AngusMcGurkinshaw Oct 05 '26
Implementing fifty move and threefold will likely help, and you need to do for correctness anyway.
Your strategy of decrementing the mate value each ply is the standard way to do it. This ensures that the engine prioritizes the shortest mate. Note that you need to be careful with how this is done when working with a transposition table.
Also endgames will become easier for your engine as your evaluation function improves.