Skip to content

Commit

Permalink
Tweak. Bench: 4273031
Browse files Browse the repository at this point in the history
  • Loading branch information
SFisGOD committed Oct 9, 2019
1 parent 80d59ee commit 2dbc191
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 13 deletions.
14 changes: 7 additions & 7 deletions src/evaluate.cpp
Expand Up @@ -717,13 +717,13 @@ namespace {
&& !pawnsOnBothFlanks;

// Compute the initiative bonus for the attacking side
int complexity = 9 * pe->passed_count()
+ 11 * pos.count<PAWN>()
+ 9 * outflanking
+ 18 * pawnsOnBothFlanks
+ 49 * !pos.non_pawn_material()
- 36 * almostUnwinnable
-103 ;
int complexity = 11 * pe->passed_count()
+ 10 * pos.count<PAWN>()
+ 7 * outflanking
+ 21 * pawnsOnBothFlanks
+ 51 * !pos.non_pawn_material()
- 43 * almostUnwinnable
- 95 ;

// Now apply the bonus: note that we find the attacking side by extracting the
// sign of the midgame or endgame values, and that we carefully cap the bonus
Expand Down
12 changes: 6 additions & 6 deletions src/psqt.cpp
Expand Up @@ -93,12 +93,12 @@ constexpr Score Bonus[][RANK_NB][int(FILE_NB) / 2] = {
constexpr Score PBonus[RANK_NB][FILE_NB] =
{ // Pawn (asymmetric distribution)
{ },
{ S( 3,-10), S( 3, -6), S( 10, 10), S( 19, 0), S( 16, 14), S( 19, 7), S( 7, -5), S( -5,-19) },
{ S( -9,-10), S(-15,-10), S( 11,-10), S( 15, 4), S( 32, 4), S( 22, 3), S( 5, -6), S(-22, -4) },
{ S( -8, 6), S(-23, -2), S( 6, -8), S( 20, -4), S( 40,-13), S( 17,-12), S( 4,-10), S(-12, -9) },
{ S( 13, 9), S( 0, 4), S(-13, 3), S( 1,-12), S( 11,-12), S( -2, -6), S(-13, 13), S( 5, 8) },
{ S( -5, 28), S(-12, 20), S( -7, 21), S( 22, 28), S( -8, 30), S( -5, 7), S(-15, 6), S(-18, 13) },
{ S( -7, 0), S( 7,-11), S( -3, 12), S(-13, 21), S( 5, 25), S(-16, 19), S( 10, 4), S( -8, 7) }
{ S( 2,-11), S( 1, -7), S( 9, 10), S( 18, -3), S( 15, 14), S( 19, 9), S( 9, 1), S( -7,-19) },
{ S( -6,-11), S(-17,-10), S( 10,-11), S( 14, 5), S( 30, 2), S( 23, 2), S( 6, -7), S(-23, -5) },
{ S( -5, 6), S(-17, -1), S( 7, -7), S( 21, -5), S( 38,-13), S( 19,-13), S( 6, -4), S(-13,-10) },
{ S( 15, 8), S( 1, 6), S(-12, 4), S( -1,-11), S( 10,-11), S( 1, -7), S(-14, 10), S( 6, 10) },
{ S( -5, 26), S(-16, 18), S( -8, 19), S( 20, 26), S( -5, 28), S( -3, 9), S(-20, 7), S(-18, 13) },
{ S( -8, 3), S( 5, -7), S( -3, 14), S(-14, 21), S( 3, 25), S(-13, 15), S( 12, 5), S( -9, 8) }
};

#undef S
Expand Down

0 comments on commit 2dbc191

Please sign in to comment.