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

#include <epd_testsuite.h>

+ Inheritance diagram for bEpd:

Public Types

enum  tReturn {
  EPD_ERROR = -3 , NO_MOVE_FOUND = -2 , NOT_RESOLVED = -1 , EPD_OK = 0 ,
  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
 
bEpdoperator= (bEpd const &)=delete
 
bEpdoperator= (bEpd &&)=delete
 
virtual bEpdResult parse ()
 
 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! | am SanMove! | id=["]identification["] id ["]identification["] | D[1-99] n | n[,n[,n]...].
 

Protected Attributes

epdTest_t m_typeOfTest
 

Detailed Description

Definition at line 27 of file epd_testsuite.h.

Member Enumeration Documentation

◆ tReturn

Enumerator
EPD_ERROR 
NO_MOVE_FOUND 
NOT_RESOLVED 
EPD_OK 
BM_OK 
AM_OK 
MATE_OK 
PERFT_OK 

Definition at line 53 of file epd_testsuite.h.

Constructor & Destructor Documentation

◆ bEpd() [1/3]

bEpd::bEpd ( epdTest_t const  typeOfTest)
explicit

Definition at line 15 of file epd_testsuite.cpp.

◆ ~bEpd()

bEpd::~bEpd ( )
virtual

Definition at line 20 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 ( )
virtual

Reimplemented in bEpdFile.

Definition at line 38 of file epd_testsuite.cpp.

Referenced by cmd_epd::execute(), cmd_epdpos::execute(), and 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 28 of file epd_testsuite.cpp.

◆ setPos()

void bEpd::setPos ( std::string const &  s)
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]...].

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 61 of file epd_testsuite.cpp.

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

+ Here is the caller graph for this function:

Member Data Documentation

◆ m_typeOfTest

epdTest_t bEpd::m_typeOfTest
protected

Definition at line 44 of file epd_testsuite.h.

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