Chess::Opening::ECO::Entry - ECO information for a position.
$book = Chess::Opening::Book::ECO->new; $entry = $book->lookupFEN($fen) or die "position not found"; $eco = $entry->eco; $variation = $entry->variation; $total = $entry->weights; $total = $entry->counts; $moves = $entry->moves; $entry->addMove(move => 'g1f3', count => 2304);
Chess::Opening::ECO::Entry is a specialization of Chess::Opening::Book::Entry for the ECO classification.
The constructor takes one single argument, the FILENAME of the opening book on disk. An exception is thrown if the file cannot be opened.
Returns a Chess::Opening::Book::Entry for FEN or false. See "lookupFEN" in Chess::Opening::Book for more information
Returns a reference to a hash of Chess::Opening::Book::Move objects for this position. The keys are the moves in coordinate notation (see "Moves" in Chess::Opening) and the values are the associated objects.
The ECO code for this position.
The name of the opening, for example "Spanish", "Reti" and so on.
The extended ECO code for this position. The extended ECO code is the normal echo code possibly followed by a lowercase letter, possibly followed by a decimal number. See http://scidvspc.sourceforge.net/doc/ECO.htm for a description of these extensions.
Since each move in the ECO database has a "weight" of 1, this just returns the number of moves.
An alias weights(), see above.
Adds a MOVE in coordinate notation with weight WEIGHT. You can use the named argument count as an alias for weight.
Copyright (C) 2019 Guido Flohr <guido.flohr@cantanea.com>, all rights reserved.
Chess::Opening::Book, Chess::Opening::Book::Entry, Chess::Opening::Book::Move, perl(1)
To install Chess::Opening, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Chess::Opening
CPAN shell
perl -MCPAN -e shell install Chess::Opening
For more information on module installation, please visit the detailed CPAN module installation guide.