Belofte  version 2.1.5
A promising chess program using the UCI or Winboard interface
tSpecialMoveFlag Namespace Reference

Variables

constexpr uint16_t ANYCASTLE = 0x0006
 0b0000111100001111 ^ 1: flag field valid (unused) ^ 1: short castle ^ 1: long castle ^ 1: capture ^ 1: check move ^ 1: ep move ^ 1: pawn jump move ^ 4: pawn promotion move More...
 
constexpr uint16_t SHORT_CASTLE = 0x0002
 
constexpr uint16_t LONG_CASTLE = 0x0004
 
constexpr uint16_t CAPTUREMOVE = 0x0008
 
constexpr uint16_t CHECKMOVE = 0x0010
 
constexpr uint16_t EPMOVE = 0x0020
 
constexpr uint16_t JUMPMOVE = 0x0040
 
constexpr uint16_t PAWNMOVE = 0x0F60
 
constexpr uint16_t GAMEEND_MATE = 0x1000
 
constexpr uint16_t GAMEEND_THDR = 0x2000
 
constexpr uint16_t GAMEEND_EXT = 0x4000
 
constexpr uint16_t GAMEEND_EXDR = 0x8000
 
constexpr uint16_t GAMEEND = 0xF000
 

Variable Documentation

◆ ANYCASTLE

constexpr uint16_t tSpecialMoveFlag::ANYCASTLE = 0x0006
constexpr

0b0000111100001111 ^ 1: flag field valid (unused) ^ 1: short castle ^ 1: long castle ^ 1: capture ^ 1: check move ^ 1: ep move ^ 1: pawn jump move ^ 4: pawn promotion move

See also
piece.h for promotion flags ^ 3: -, th 3 draw, th 50 draw, th mat. draw, -, other, mate (unused)

Definition at line 73 of file move.h.

Referenced by bBasicMove::isCastleMove().

◆ SHORT_CASTLE

constexpr uint16_t tSpecialMoveFlag::SHORT_CASTLE = 0x0002
constexpr

Definition at line 74 of file move.h.

Referenced by bWhiteKing::GenerateMoves(), and bBlackKing::GenerateMoves().

◆ LONG_CASTLE

constexpr uint16_t tSpecialMoveFlag::LONG_CASTLE = 0x0004
constexpr

◆ CAPTUREMOVE

constexpr uint16_t tSpecialMoveFlag::CAPTUREMOVE = 0x0008
constexpr

Definition at line 76 of file move.h.

Referenced by bBasicMove::isCapture(), and bBasicMove::setCapture().

◆ CHECKMOVE

constexpr uint16_t tSpecialMoveFlag::CHECKMOVE = 0x0010
constexpr

Definition at line 77 of file move.h.

Referenced by bBasicMove::isCheck(), and bBasicMove::setCheck().

◆ EPMOVE

constexpr uint16_t tSpecialMoveFlag::EPMOVE = 0x0020
constexpr

Definition at line 78 of file move.h.

Referenced by bBasicMove::isEPMove(), and bBasicMove::setEPMove().

◆ JUMPMOVE

constexpr uint16_t tSpecialMoveFlag::JUMPMOVE = 0x0040
constexpr

Definition at line 79 of file move.h.

Referenced by bBasicMove::isEPPossible(), and bBasicMove::setEPPossible().

◆ PAWNMOVE

constexpr uint16_t tSpecialMoveFlag::PAWNMOVE = 0x0F60
constexpr

Definition at line 80 of file move.h.

Referenced by bBasicMove::isPawnMove().

◆ GAMEEND_MATE

constexpr uint16_t tSpecialMoveFlag::GAMEEND_MATE = 0x1000
constexpr

Definition at line 81 of file move.h.

Referenced by bBasicMove::isMate(), and bBasicMove::setMate().

◆ GAMEEND_THDR

constexpr uint16_t tSpecialMoveFlag::GAMEEND_THDR = 0x2000
constexpr

Definition at line 82 of file move.h.

◆ GAMEEND_EXT

constexpr uint16_t tSpecialMoveFlag::GAMEEND_EXT = 0x4000
constexpr

Definition at line 83 of file move.h.

◆ GAMEEND_EXDR

constexpr uint16_t tSpecialMoveFlag::GAMEEND_EXDR = 0x8000
constexpr

Definition at line 84 of file move.h.

◆ GAMEEND

constexpr uint16_t tSpecialMoveFlag::GAMEEND = 0xF000
constexpr

Definition at line 85 of file move.h.

Referenced by bBasicMove::getGameEnd().