Belofte  version 2.1.5
A promising chess program using the UCI or Winboard interface
bPgnMove Class Referencefinal

PgnMove is for user-interface only. More...

Public Member Functions

 bPgnMove (bPgnMove const &m)
 
 bPgnMove (bBoard const &b, bMove const &m)
 
 bPgnMove (bBoard const &b, basicmove_t const bm)
 create PGN move based on basicmove_t for this, we create all moves in position and compare it More...
 
 bPgnMove (bBoard const &b, move_t const mt)
 
 ~bPgnMove ()
 
bPgnMoveoperator= (bPgnMove const &)=delete
 
 bPgnMove (bPgnMove &&)=delete
 
bPgnMoveoperator= (bPgnMove &&)=delete
 
 operator std::string () const
 embedded base constructor More...
 
std::string getMoveEvalStr () const
 

Friends

bool operator== (bPgnMove const &lhs, std::string const &rhs)
 
std::ostream & operator<< (std::ostream &os, bPgnMove const &m)
 

Detailed Description

PgnMove is for user-interface only.

Definition at line 12 of file san.h.

Constructor & Destructor Documentation

◆ bPgnMove() [1/5]

bPgnMove::bPgnMove ( bPgnMove const &  m)

Definition at line 70 of file san.cpp.

◆ bPgnMove() [2/5]

bPgnMove::bPgnMove ( bBoard const &  b,
bMove const &  m 
)

Definition at line 76 of file san.cpp.

◆ bPgnMove() [3/5]

bPgnMove::bPgnMove ( bBoard const &  b,
basicmove_t const  bm 
)

create PGN move based on basicmove_t for this, we create all moves in position and compare it

Todo:
check for minor promotions

Definition at line 42 of file san.cpp.

+ Here is the call graph for this function:

◆ bPgnMove() [4/5]

bPgnMove::bPgnMove ( bBoard const &  b,
move_t const  mt 
)

Definition at line 56 of file san.cpp.

+ Here is the call graph for this function:

◆ ~bPgnMove()

bPgnMove::~bPgnMove ( )

Definition at line 168 of file san.cpp.

◆ bPgnMove() [5/5]

bPgnMove::bPgnMove ( bPgnMove &&  )
delete

Member Function Documentation

◆ operator=() [1/2]

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

◆ operator=() [2/2]

bPgnMove& bPgnMove::operator= ( bPgnMove &&  )
delete

◆ operator std::string()

bPgnMove::operator std::string ( ) const

embedded base constructor

◆ getMoveEvalStr()

std::string bPgnMove::getMoveEvalStr ( ) const
inline

Definition at line 30 of file san.h.

Friends And Related Function Documentation

◆ operator==

bool operator== ( bPgnMove const &  lhs,
std::string const &  rhs 
)
friend

Definition at line 193 of file san.cpp.

◆ operator<<

std::ostream& operator<< ( std::ostream &  os,
bPgnMove const &  m 
)
friend

Definition at line 198 of file san.cpp.