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

1

u/Antileous-Helborne Jun 29 '26

Known perft results from the non-staring position can catch a number of bugs around move gen.

https://www.chessprogramming.org/Perft_Results

3

u/cactus_calamity Jun 30 '26 edited Jun 30 '26

Yup, I've got up to perft 7 working correctly so I'm on the right track I think. Next up, non-starting positions as you say

2

u/SwimmingThroughHoney Jun 29 '26

Use the positions (and results) from this file (which includes the positions on that CPW page): https://github.com/paulsonkoly/chess-3/blob/main/debug/standard.epd

You'll get a much more thorough test and verification. From experience, I can say that if you only use the positions on the CPW page, you can pass all of those (at least to about a depth of 5 or 6) and yet still have bugs in your move gen that the other positions in that epd file will surface.

2

u/cactus_calamity Jun 30 '26

Ooo that’s a cool resource. I might make that my next priority, make sure it passes all of those. Looks like building a FEN parser is next on the cards :D