chessIO-0.6.1.0: Basic chess library
Safe HaskellNone
LanguageHaskell2010

Game.Chess.Polyglot

Synopsis

Data type

data PolyglotBook Source #

A Polyglot opening book.

Instances

Instances details
Eq PolyglotBook Source # 
Instance details

Defined in Game.Chess.Polyglot

Built-in books

Load and save

fromByteString :: ByteString -> PolyglotBook Source #

Create a PolyglotBook from a ByteString.

Lookup

bookPly :: RandomGen g => PolyglotBook -> Position -> Maybe (Rand g Ply) Source #

Pick a random ply from the book.

bookPlies :: PolyglotBook -> Position -> [Ply] Source #

Probe the book for all plies known for the given position.

variations :: PolyglotBook -> Position -> [[Ply]] Source #

Predicted Variations. Return the most popular game.