Is there a basic way to create a simple opening book?
One idea I've had...
When a search is started, get the full hashkey(with castling rights etc) for the position(64 bits)
Then have an array, with say a 1000 entries, each entry contains a 64 bit key together with the corresponding move
Then just loop through the array till you find a matching key, and then play that move.
But for a given opening, say Queens Gambit, there aren't that many positions, maybe in the hundreds if you look at different transpositions of the same opening.
I guess you could also put the entries in the hash table, but I'm not sure what you would do with the depth,flag,score data.
Thanks for any help
