Skip to content

Commit

Permalink
tweek.
Browse files Browse the repository at this point in the history
bench 3621082
  • Loading branch information
Vizvezdenec committed Dec 6, 2018
1 parent 168e1a9 commit 29e4e03
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 10 deletions.
9 changes: 0 additions & 9 deletions src/evaluate.cpp
Expand Up @@ -425,14 +425,6 @@ namespace {
// Main king safety evaluation
if (kingAttackersCount[Them] > 1 - pos.count<QUEEN>(Them))
{
constexpr Bitboard KingDefenceZone[FILE_NB] = {
QueenSide ^ FileDBB, QueenSide ^ FileDBB, QueenSide ^ FileDBB,
FileDBB|FileEBB, FileDBB|FileEBB,
KingSide ^ FileEBB, KingSide ^ FileEBB, KingSide ^ FileEBB
};

int noDefender = !(KingDefenceZone[file_of(pos.square<KING>(Us))] & attackedBy[Us][KNIGHT]) +
!(KingDefenceZone[file_of(pos.square<KING>(Us))] & attackedBy[Us][BISHOP]);
int kingDanger = 0;
unsafeChecks = 0;

Expand Down Expand Up @@ -486,7 +478,6 @@ namespace {
- 873 * !pos.count<QUEEN>(Them)
- 6 * mg_value(score) / 8
+ mg_value(mobility[Them] - mobility[Us])
+ 30 * (noDefender * noDefender - 1)
- 30;

// Transform the kingDanger units into a Score, and subtract it from the evaluation
Expand Down
2 changes: 1 addition & 1 deletion src/search.cpp
Expand Up @@ -833,7 +833,7 @@ namespace {
int probCutCount = 0;

while ( (move = mp.next_move()) != MOVE_NONE
&& probCutCount < 3)
&& probCutCount < 3 + ((ss-1)->moveCount == 1))
if (move != excludedMove && pos.legal(move))
{
probCutCount++;
Expand Down

0 comments on commit 29e4e03

Please sign in to comment.