mirror of
https://github.com/sockspls/badfish
synced 2025-05-01 01:03:09 +00:00
parent
bffe32f4fe
commit
0a1f54975f
3 changed files with 4 additions and 5 deletions
|
@ -57,9 +57,8 @@ namespace {
|
||||||
|
|
||||||
// kingAttackersWeight[color] is the sum of the "weight" of the pieces of the
|
// kingAttackersWeight[color] is the sum of the "weight" of the pieces of the
|
||||||
// given color which attack a square in the kingRing of the enemy king. The
|
// given color which attack a square in the kingRing of the enemy king. The
|
||||||
// weights of the individual piece types are given by the variables
|
// weights of the individual piece types are given by the elements in the
|
||||||
// QueenAttackWeight, RookAttackWeight, BishopAttackWeight and
|
// KingAttackWeights array.
|
||||||
// KnightAttackWeight in evaluate.cpp
|
|
||||||
int kingAttackersWeight[COLOR_NB];
|
int kingAttackersWeight[COLOR_NB];
|
||||||
|
|
||||||
// kingAdjacentZoneAttacksCount[color] is the number of attacks to squares
|
// kingAdjacentZoneAttacksCount[color] is the number of attacks to squares
|
||||||
|
|
|
@ -37,7 +37,7 @@ namespace {
|
||||||
// pair pawn knight bishop rook queen
|
// pair pawn knight bishop rook queen
|
||||||
{ 0 }, // Bishop pair
|
{ 0 }, // Bishop pair
|
||||||
{ 39, 2 }, // Pawn
|
{ 39, 2 }, // Pawn
|
||||||
{ 35, 271, -4 }, // knight OUR PIECES
|
{ 35, 271, -4 }, // Knight OUR PIECES
|
||||||
{ 0, 105, 4, 0 }, // Bishop
|
{ 0, 105, 4, 0 }, // Bishop
|
||||||
{ -27, -2, 46, 100, -141 }, // Rook
|
{ -27, -2, 46, 100, -141 }, // Rook
|
||||||
{-177, 25, 129, 142, -137, 0 } // Queen
|
{-177, 25, 129, 142, -137, 0 } // Queen
|
||||||
|
|
|
@ -1008,7 +1008,7 @@ void Position::undo_null_move() {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/// Position::key_after() computes the new hash key after the given moven. Needed
|
/// Position::key_after() computes the new hash key after the given move. Needed
|
||||||
/// for speculative prefetch. It doesn't recognize special moves like castling,
|
/// for speculative prefetch. It doesn't recognize special moves like castling,
|
||||||
/// en-passant and promotions.
|
/// en-passant and promotions.
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue