|
BenBot 1.7.5
A chess engine
|
Files | |
| file | Evaluation.hpp |
| file | Material.hpp |
| file | Score.hpp |
Namespaces | |
| namespace | ben_bot |
| namespace | ben_bot::eval |
| namespace | ben_bot::eval::piece_values |
Classes | |
| struct | std::formatter< ben_bot::eval::Score > |
| struct | ben_bot::eval::Score |
Typedefs | |
| using | ben_bot::eval::Value = std::int16_t |
Functions | |
| auto | ben_bot::eval::evaluate (const Position &position) -> Score |
| constexpr auto | ben_bot::eval::piece_values::get (PieceType type) noexcept -> Value |
| constexpr auto | ben_bot::eval::score_material (const Position &position) noexcept -> Value |
Variables | |
| constexpr Value | ben_bot::eval::DRAW { UINT16_C(0) } |
| constexpr Value | ben_bot::eval::MATE { MAX / UINT16_C(2) } |
| constexpr Value | ben_bot::eval::MAX { std::numeric_limits<Value>::max() - UINT16_C(5) } |
| constexpr Value | ben_bot::eval::piece_values::PAWN { UINT16_C(100) } |
| constexpr Value | ben_bot::eval::piece_values::KNIGHT { UINT16_C(320) } |
| constexpr Value | ben_bot::eval::piece_values::BISHOP { UINT16_C(330) } |
| constexpr Value | ben_bot::eval::piece_values::ROOK { UINT16_C(500) } |
| constexpr Value | ben_bot::eval::piece_values::QUEEN { UINT16_C(900) } |
| constexpr Value | ben_bot::eval::piece_values::KING { UINT16_C(10000) } |
Functions for evaluating positions.
| using ben_bot::eval::Value = std::int16_t |
Returns a numerical score representing the evaluation of the give position from the perspective of the side to move. Higher numbers are better for the side to move.
Returns the value of the given piece type.
Definition at line 97 of file Material.hpp.
Returns an aggregate score for the material on the board, relative to the side to move.
Definition at line 133 of file Material.hpp.
|
inlineconstexpr |
The value of a bishop.
Definition at line 48 of file Material.hpp.
|
inlineconstexpr |
|
inlineconstexpr |
The value of the king. This value isn't really used in counting material, it's just an arbitrarily large placeholder value.
Definition at line 60 of file Material.hpp.
|
inlineconstexpr |
The value of a knight
Definition at line 45 of file Material.hpp.
|
inlineconstexpr |
The value of a pawn.
Definition at line 42 of file Material.hpp.
|
inlineconstexpr |
The value of a queen.
Definition at line 54 of file Material.hpp.
|
inlineconstexpr |
The value of a rook.
Definition at line 51 of file Material.hpp.