NAME
Chess::Opening::Book::ECO - ECO information
SYNOPSIS
$book = Chess::Opening::Book::ECO->new;
$entry = $book->lookupFEN($fen) or die "position not found";
$eco = $entry->eco;
print "position has ECO code $eco\n";
$variation = $entry->variation;
print "opening: $variation\n";
die "Chess::Opening::Book is an abstract base class";
DESCRIPTION
The Encyclopedia of Chess Openings ECO is a classification of chess openings. Openings are divided into five groups A, B, C, D, E and further classified into subgroups numbered 00-99.
The popular chess database program Scid resp. its fork Scid vs PC extended ECO codes with an even finer granularity, see http://scidvspc.sourceforge.net/doc/ECO.htm.
This module offers access to both the classical ECO information and the Scid extensions.
METHODS
- new
-
The constructor takes no arguments and cannot fail.
- lookupFEN FEN
-
See "lookupFEN" in Chess::Opening::Book!
Note that lookupFEN() returns a Chess::Opening::ECO::Entry that extends Chess::Opening::Book::Entry with methods for retrieval of the ECO information.
EXAMPLES
See "EXAMPLES" in Chess::Opening::Book!
COPYRIGHT
Copyright (C) 2019 Guido Flohr <guido.flohr@cantanea.com>, all rights reserved.
SEE ALSO
Chess::Opening::Book, Chess::Opening::Book::Polyglot, Chess::Opening::Book::ECO, Chess::Rep, perl(1)