projects
/
fairystockfish.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
(parent:
2968da4
)
Consider endgame king danger for bughouse
author
Fabian Fichter
<ianfab@users.noreply.github.com>
Fri, 6 Mar 2020 14:10:02 +0000 (15:10 +0100)
committer
Fabian Fichter
<ianfab@users.noreply.github.com>
Fri, 6 Mar 2020 14:10:02 +0000 (15:10 +0100)
bughouse
Total: 500 W: 270 L: 225 D: 5
src/evaluate.cpp
patch
|
blob
|
history
diff --git
a/src/evaluate.cpp
b/src/evaluate.cpp
index
34f8bcb
..
4fc31b0
100644
(file)
--- a/
src/evaluate.cpp
+++ b/
src/evaluate.cpp
@@
-583,7
+583,7
@@
namespace {
score += make_score(0, mg_value(score) / 2);
// For drop games, king danger is independent of game phase
- if (pos.captures_to_hand())
+ if (pos.captures_to_hand() || pos.two_boards())
score = make_score(mg_value(score), mg_value(score)) * 2 / (2 + 16 / pos.max_rank() * !pos.shogi_doubled_pawn());
if (T)