Guess the opening using the Lichess Opening Database See: https://github.com/lichess-org/chess-openings.
More...
#include <Openings.hpp>
|
void | GuessOpening (const std::string &SANMoves, std::string &name, std::string &eco) |
| Guess the opening based on a list of SAN moves (PGN) More...
|
|
void | GuessOpening (const pgnp::HalfMove *moves, std::string &name, std::string &eco) |
| Guess the opening based on a half moves (wrapper around ::SearchOpening) More...
|
|
|
typedef std::vector< std::tuple< std::string, std::string, std::string > > | Volume |
| Loaded tsv data format as a vector of tuples (<eco>,<name>,<pgn-moves-list>)
|
|
Guess the opening using the Lichess Opening Database See: https://github.com/lichess-org/chess-openings.
◆ GuessOpening() [1/2]
void Openings::GuessOpening |
( |
const pgnp::HalfMove * |
moves, |
|
|
std::string & |
name, |
|
|
std::string & |
eco |
|
) |
| |
Guess the opening based on a half moves (wrapper around ::SearchOpening)
- Parameters
-
◆ GuessOpening() [2/2]
void Openings::GuessOpening |
( |
const std::string & |
SANMoves, |
|
|
std::string & |
name, |
|
|
std::string & |
eco |
|
) |
| |
Guess the opening based on a list of SAN moves (PGN)
- Parameters
-
◆ LoadVolume()
void Openings::LoadVolume |
( |
const std::string & |
tsv, |
|
|
Volume * |
vol |
|
) |
| |
|
private |
Load a volume using tsv data (see openings.hpp)
- Parameters
-
tsv | data to load |
vol | volume in which the data will be loaded |
◆ SearchOpening()
void Openings::SearchOpening |
( |
const pgnp::HalfMove * |
moves, |
|
|
std::string & |
name, |
|
|
std::string & |
eco |
|
) |
| |
|
private |
Search opening name an ECO code based on the given moves.
- Parameters
-
moves | Half moves that you want to search for the opening |
name | Fill by the method if opening is found |
eco | Fill by the method if opening is found |
The documentation for this class was generated from the following files:
- /home/loic/Documents/Git/ochess/src/Openings.hpp
- /home/loic/Documents/Git/ochess/src/Openings.cpp