Belofte  version 2.1.5
A promising chess program using the UCI or Winboard interface
bEpd Class Reference

Public Types

enum  tReturn {
  EPD_ERROR = -3 , NO_MOVE_FOUND = -2 , NOT_RESOLVED = -1 , EPD_OK = 0 ,
  BM_1 , BM_2 , BM_3 , BM_4 ,
  BM_5 , BM_6 , BM_7 , BM_8 ,
  BM_9 , BM_OK = 10 , AM_OK = 11 , MATE_OK = 12 ,
  PERFT_OK = 13
}
 

Public Member Functions

 bEpd ()
 
virtual ~bEpd ()
 
 bEpd (bEpd const &)=delete
 
 bEpd (bEpd &&)=delete
 
bEpdoperator= (bEpd const &)=delete
 
bEpdoperator= (bEpd &&)=delete
 
virtual bEpdResult parse (epdTest_t const typeOfTest)
 
 operator std::string () const
 

Protected Member Functions

void setPos (std::string const &pos)
 set EPD position composed of (simplified) FEN and EPD opcodes More...
 

Detailed Description

Definition at line 25 of file epd_testsuite.h.

Member Enumeration Documentation

◆ tReturn

Enumerator
EPD_ERROR 
NO_MOVE_FOUND 
NOT_RESOLVED 
EPD_OK 
BM_1 
BM_2 
BM_3 
BM_4 
BM_5 
BM_6 
BM_7 
BM_8 
BM_9 
BM_OK 
AM_OK 
MATE_OK 
PERFT_OK 

Definition at line 48 of file epd_testsuite.h.

Constructor & Destructor Documentation

◆ bEpd() [1/3]

bEpd::bEpd ( )

Definition at line 15 of file epd_testsuite.cpp.

◆ ~bEpd()

bEpd::~bEpd ( )
virtual

Definition at line 19 of file epd_testsuite.cpp.

◆ bEpd() [2/3]

bEpd::bEpd ( bEpd const &  )
delete

◆ bEpd() [3/3]

bEpd::bEpd ( bEpd &&  )
delete

Member Function Documentation

◆ operator=() [1/2]

bEpd& bEpd::operator= ( bEpd const &  )
delete

◆ operator=() [2/2]

bEpd& bEpd::operator= ( bEpd &&  )
delete

◆ parse()

bEpdResult bEpd::parse ( epdTest_t const  typeOfTest)
virtual

Reimplemented in bEpdFile.

Definition at line 37 of file epd_testsuite.cpp.

Referenced by bEpdFile::parse().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ operator std::string()

bEpd::operator std::string ( ) const

Definition at line 27 of file epd_testsuite.cpp.

◆ setPos()

void bEpd::setPos ( std::string const &  pos)
protected

set EPD position composed of (simplified) FEN and EPD opcodes

Parameters
posis fen-board fen-tomove fen-castling fen-ep [50moves] [move#] [;]cmdsection* cmdsection is bm SanMove; [|] am SanMove; | D[1-99] n; id ["]identification["]; c[0-9] "comments"; dm n; acs n; noop
Todo:
do only consider opcode starting with letter
Deprecated:
backwards compatibility with belofte 0.9.x, which has testfiles where id is followed by = sign instead of space

Definition at line 62 of file epd_testsuite.cpp.

Referenced by bEpdPos::bEpdPos(), and bEpdFile::parse().

+ Here is the call graph for this function:
+ Here is the caller graph for this function: