More UCI features
This commit is contained in:
parent
d649358c12
commit
e1370eab54
13 changed files with 296 additions and 182 deletions
|
|
@ -201,10 +201,6 @@ int evaluate_position(const GameState *state) {
|
|||
// Add randomness to break symmetry in equal positions
|
||||
score += (int)(hash_position(state) % 10) - 5;
|
||||
|
||||
// Encourage piece activity
|
||||
int white_pieces = __builtin_popcountll(state->occ_white);
|
||||
int black_pieces = __builtin_popcountll(state->occ_black);
|
||||
|
||||
// Slight bonus for having pieces in the center
|
||||
U64 center = 0x0000001818000000ULL; // e4, e5, d4, d5
|
||||
U64 extended_center = 0x00003C3C3C3C0000ULL; // c3-f3 to c6-f6
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue