projects
/
fairystockfish.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
(parent:
4c0373c
)
Do not apply pawn bonus to shatranj
author
Fabian Fichter
<ianfab@users.noreply.github.com>
Thu, 31 Dec 2020 11:35:01 +0000 (12:35 +0100)
committer
Fabian Fichter
<ianfab@users.noreply.github.com>
Thu, 31 Dec 2020 11:35:01 +0000 (12:35 +0100)
Fix previous commit to not accidentally apply to shatranj.
src/psqt.cpp
patch
|
blob
|
history
diff --git
a/src/psqt.cpp
b/src/psqt.cpp
index
4865130
..
15c9605
100644
(file)
--- a/
src/psqt.cpp
+++ b/
src/psqt.cpp
@@
-169,6
+169,7
@@
void init(const Variant* v) {
score = make_score(mg_value(score) * (40000 + mg_value(score)) / 41000,
eg_value(score) * (30000 + eg_value(score)) / 31000);
else if ( v->extinctionValue == -VALUE_MATE
+ && v->extinctionPieceCount == 0
&& v->extinctionPieceTypes.find(ALL_PIECES) != v->extinctionPieceTypes.end())
score += make_score(0, std::max(KnightValueEg - PieceValue[EG][pt], VALUE_ZERO) / 20);
else if (pt == strongestPiece)