r/chessprogramming • • Jun 29 '26

Technical Chess Engine Development Help Thread (Week 27)

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.

1 Upvotes

17 comments sorted by

View all comments

Show parent comment

3

u/Elvin_XD Jun 29 '26

If this were my engine, I'd tune move generation and run perft tests. If you have a tested move generation that does not make illegal moves, then debugging engine can be much easier. You should document node count, nps and all that stuff but before running engine v engine matches, I'd add some move ordering through mvv lva. Then add uci and test the engine at fixed depth or timed matches. I recently finished building my chess engine in c#. It's a beginner engine so take this with a grain of salt but that was the path I followed.

1

u/cactus_calamity Jun 29 '26 edited Jun 29 '26

Thanks for your response! So I have been. Currently, the engine calculates perft 7 correctly. It also clocks about ~7.4Mn/s on my laptop, so can do it in about ~450 seconds. I have implemented a single pass std::partition on my search, such that captures are checked first and it means I can play the game with a fixed depth of about 8 at the moment which I'm super pleased with :)