Scid  4.7.0
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
Public Member Functions | List of all members
FastBoard Class Reference

#include <fastgame.h>

Public Member Functions

 FastBoard ()
 
 FastBoard (Position &pos)
 
void Init ()
 
void Init (Position &pos)
 
bool isEqual (const pieceT *board, const MaterialCount &mt_count) const
 
const MaterialCountmaterialCount () const
 
squareT getSquare (colorT color, int idx) const
 
pieceT getPiece (colorT color, int idx) const
 
template<colorT color>
squareT castle (bool king_side)
 
template<colorT color>
pieceT move (uint8_t idx, squareT to, pieceT promo)
 
template<colorT color>
pieceT remove (squareT sq, uint8_t newIdx=EMPTY_SQ_)
 
void fillSANInfo (FullMove &lastmove)
 Given the actual board position, find if the last move needs to be made unambiguous and if it gives check (or TODO mate), and then sets the appropriate bits in lastmove. More...
 

Detailed Description

Definition at line 148 of file fastgame.h.

Constructor & Destructor Documentation

◆ FastBoard() [1/2]

FastBoard::FastBoard ( )
inline

Definition at line 156 of file fastgame.h.

◆ FastBoard() [2/2]

FastBoard::FastBoard ( Position pos)
inline

Definition at line 157 of file fastgame.h.

Member Function Documentation

◆ castle()

template<colorT color>
squareT FastBoard::castle ( bool  king_side)
inline

Definition at line 217 of file fastgame.h.

◆ fillSANInfo()

void FastBoard::fillSANInfo ( FullMove lastmove)
inline

Given the actual board position, find if the last move needs to be made unambiguous and if it gives check (or TODO mate), and then sets the appropriate bits in lastmove.

Parameters
lastmovethe last move played.

Definition at line 277 of file fastgame.h.

◆ getPiece()

pieceT FastBoard::getPiece ( colorT  color,
int  idx 
) const
inline

Definition at line 212 of file fastgame.h.

◆ getSquare()

squareT FastBoard::getSquare ( colorT  color,
int  idx 
) const
inline

Definition at line 208 of file fastgame.h.

◆ Init() [1/2]

void FastBoard::Init ( )
inline

Definition at line 159 of file fastgame.h.

◆ Init() [2/2]

void FastBoard::Init ( Position pos)
inline

Definition at line 165 of file fastgame.h.

◆ isEqual()

bool FastBoard::isEqual ( const pieceT board,
const MaterialCount mt_count 
) const
inline

Definition at line 185 of file fastgame.h.

◆ materialCount()

const MaterialCount& FastBoard::materialCount ( ) const
inline

Definition at line 204 of file fastgame.h.

◆ move()

template<colorT color>
pieceT FastBoard::move ( uint8_t  idx,
squareT  to,
pieceT  promo 
)
inline

Definition at line 242 of file fastgame.h.

◆ remove()

template<colorT color>
pieceT FastBoard::remove ( squareT  sq,
uint8_t  newIdx = EMPTY_SQ_ 
)
inline

Definition at line 255 of file fastgame.h.


The documentation for this class was generated from the following file: