I have attempted to program a tablebase generator several times. (In C++) However each time I run into difficulties and get discouraged.
Does anyone know of any particularly simple and easy to understand open source generators? I hope that by understanding the way other people have done things, it might be easier to design my program.
Some of the issues I've seen: What is the most efficient way to represent a position in memory? Are there any tricks for easily determining check status and legal moves from a given position? Is code generally written for a particular set of pieces, or in a general manner for any number of pieces?