This is the opening book module of the CPW-Engine. Is responsibilities are:
reading opening book in the text format (e2e4 a7a6-d2d4 b7b5 a2a4 c8b7 b1d2, where "-" means that preceeding move is not to be played
filtering out illegal moves from the text file and warning user about them
choosing the opening move out of possible alternatives (either completely randomly or based on frequency)
Obviously, initializing a book takes some time (a couple of seconds in case of 15.000 moves) and really efficiten method would be to read and write opening book in the internal format. However, even it this case the code presented here, after some modification, would be useful for feeding moves into the opening book.
This is the opening book module of the CPW-Engine. Is responsibilities are:
Obviously, initializing a book takes some time (a couple of seconds in case of 15.000 moves) and really efficiten method would be to read and write opening book in the internal format. However, even it this case the code presented here, after some modification, would be useful for feeding moves into the opening book.
See also CPW-Engine_book_h
What links here?
Up one Level