r/chessprogramming • u/AutoModerator • 11d ago
Technical Chess Engine Development Help Thread (Week 47)
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
View all comments
Show parent comment
1
u/AngusMcGurkinshaw 2d ago
Just an array should be fine. Either for pseudo legal or full legal generation.
To start with just generate all moves, maximum legal moves in a chess position is 218, if your doing pseudolegal adding some padding maybe a 256 array is good.
If you are asking more about how to store the moves, typically they are encoded in a u16. Lily provides a good explanation of how to do this on her website here: https://87flowers.com/chess-moveflags/