projects
/
fairystockfish.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
(parent:
146dd60
)
Simplify redundant condition
author
Fabian Fichter
<ianfab@users.noreply.github.com>
Fri, 22 May 2020 18:08:19 +0000 (20:08 +0200)
committer
Fabian Fichter
<ianfab@users.noreply.github.com>
Fri, 22 May 2020 18:08:19 +0000 (20:08 +0200)
No functional change.
src/evaluate.cpp
patch
|
blob
|
history
diff --git
a/src/evaluate.cpp
b/src/evaluate.cpp
index
27a3b59
..
d26fb11
100644
(file)
--- a/
src/evaluate.cpp
+++ b/
src/evaluate.cpp
@@
-1005,7
+1005,7
@@
namespace {
Value eg = eg_value(score);
// No initiative bonus for extinction variants
- if (pos.extinction_value() != VALUE_NONE || pos.must_capture() || pos.captures_to_hand() || pos.connect_n())
+ if (pos.extinction_value() != VALUE_NONE || pos.captures_to_hand() || pos.connect_n())
return SCORE_ZERO;
int outflanking = !pos.count<KING>(WHITE) || !pos.count<KING>(BLACK) ? 0