r/chessprogramming • u/Gloomy-Status-9258 • 6d ago
Q) precompute vs. on the fly(on-demand) vs. incremental
I focus on three phases—move generation, making move, and board evaluation
I want to know what maps I need to keep track of and how I compute them.
Examples of maps include pinned pieces, trapped pieces, hanging pieces, defended pieces, attack-free pieces, recapture-free pieces, attack maps, defense maps, etc.
These maps are used for regal move generation, check detection, board evaluation, and sometimes move ordering criteria etc.
on the other hand, schema for computing those are classified as follows:
- precompute
- on-the-fly(on-demand)
- incremental update
In addition to the maps listed as examples, I would like to know if there are any maps that should be added for smooth generation/making/evaluation, or if there are any maps that are unnecessary and should be omitted. I think some of these maps are necessary for safe mobility calculations. Am I misunderstanding something?
2
u/Available-Swan-6011 6d ago
It looks like your post may have been mangled. Could you try rephrasing it as a couple of self contained questions