Belofte version 2.1.9
A promising chess program using the UCI or Winboard interface
|
#include <epd_testsuite.h>
Public Types | |
enum | tReturn { EPD_ERROR = -4 , NO_MOVE_FOUND = -3 , PERFT_MISS = -2 , NOT_RESOLVED = -1 , EPD_OK = 0 , STS_OK = 1 , BM_OK = 10 , AM_OK = 11 , MATE_OK = 12 , PERFT_OK = 13 } |
Public Member Functions | |
bEpd (epdTest_t const typeOfTest) | |
virtual | ~bEpd () |
bEpd (bEpd const &)=delete | |
bEpd (bEpd &&)=delete | |
bEpd & | operator= (bEpd const &)=delete |
bEpd & | operator= (bEpd &&)=delete |
virtual bEpdResult | parse () |
parse any epd position | |
operator std::string () const | |
Protected Member Functions | |
void | setPos (std::string const &s) |
EPD pos is fen-board fen-tomove fen-castling fen-ep [50moves] [move#] cmdsection* cmdsection is bm SanMove! | |
int | getScore () const |
void | setScore (int const s) |
epdTest_t | getTestType () const |
bEpdResult | parseEpdPosition (bFen const &fen) |
do actual epd position test | |
bEpdResult | parsePerftPosition (bFen const &fen) |
check perft result for different depths D[1-99] # perft test - nodes | |
bEpdResult | parseSTSPosition (bFen const &fen) |
bEpdResult | translateEpdResult (bPgnMove const &m) |
check move found against epd line m_Keys, change level before starting search am avoid-moves bm best-moves acs # set search seconds acn # set search nodes dm # set direct mate depth | |
int | translateSTSResult (bPgnMove const &m, bEpdMoveValues &moveValues) |
std::string const | getTag (std::string const &tag) |
Definition at line 33 of file epd_testsuite.h.
enum bEpd::tReturn |
Enumerator | |
---|---|
EPD_ERROR | |
NO_MOVE_FOUND | |
PERFT_MISS | |
NOT_RESOLVED | |
EPD_OK | |
STS_OK | |
BM_OK | |
AM_OK | |
MATE_OK | |
PERFT_OK |
Definition at line 75 of file epd_testsuite.h.
|
inlineexplicit |
Definition at line 35 of file epd_testsuite.h.
Referenced by bEpd(), bEpd(), bEpdFile::bEpdFile(), bEpdFile::bEpdFile(), bEpdPos::bEpdPos(), bEpdPos::bEpdPos(), operator=(), and operator=().
|
inlinevirtual |
Definition at line 38 of file epd_testsuite.h.
|
delete |
|
delete |
|
virtual |
parse any epd position
Reimplemented in bEpdFile.
Definition at line 117 of file epd_testsuite.cpp.
Referenced by cmd_epd::execute(), cmd_epdpos::execute(), and bEpdFile::parse().
bEpd::operator std::string | ( | ) | const |
Definition at line 10 of file epd_testsuite.cpp.
|
protected |
EPD pos is fen-board fen-tomove fen-castling fen-ep [50moves] [move#] cmdsection* cmdsection is bm SanMove!
| am SanMove! | id=["]identification["] id ["]identification["] | D[1-99] n | n[,n[,n]...]
Definition at line 27 of file epd_testsuite.cpp.
Referenced by bEpdPos::bEpdPos(), bEpdPos::bEpdPos(), and bEpdFile::parse().
|
inlineprotected |
Definition at line 53 of file epd_testsuite.h.
Referenced by bEpdFile::parse().
|
inlineprotected |
Definition at line 54 of file epd_testsuite.h.
Referenced by parseSTSPosition().
|
inlineprotected |
Definition at line 55 of file epd_testsuite.h.
Referenced by parse(), and bEpdFile::parse().
|
protected |
do actual epd position test
Definition at line 189 of file epd_testsuite.cpp.
Referenced by parse().
|
protected |
check perft result for different depths D[1-99] # perft test - nodes
Definition at line 242 of file epd_testsuite.cpp.
Referenced by parse().
|
protected |
Definition at line 141 of file epd_testsuite.cpp.
Referenced by parse().
|
protected |
check move found against epd line m_Keys, change level before starting search am avoid-moves bm best-moves acs # set search seconds acn # set search nodes dm # set direct mate depth
Definition at line 206 of file epd_testsuite.cpp.
Referenced by parseEpdPosition().
|
protected |
Definition at line 229 of file epd_testsuite.cpp.
Referenced by parseSTSPosition().
|
protected |
Definition at line 104 of file epd_testsuite.cpp.
Referenced by bEpdFile::parse().