projects
/
fairystockfish.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
(parent:
e5d0814
)
Simplify antichess move picking
author
Fabian Fichter
<ianfab@users.noreply.github.com>
Tue, 9 Feb 2021 20:13:52 +0000 (21:13 +0100)
committer
Fabian Fichter
<ianfab@users.noreply.github.com>
Tue, 9 Feb 2021 20:13:52 +0000 (21:13 +0100)
No functional change.
src/movepick.cpp
patch
|
blob
|
history
diff --git
a/src/movepick.cpp
b/src/movepick.cpp
index
dc93e1b
..
c42a813
100644
(file)
--- a/
src/movepick.cpp
+++ b/
src/movepick.cpp
@@
-173,7
+173,7
@@
top:
case GOOD_CAPTURE:
if (select<Best>([&](){
- return pos.see_ge(*cur, Value(-69 * cur->value / 1024 - 500 * (pos.captures_to_hand() && pos.gives_check(*cur)))) || pos.must_capture() ?
+ return pos.see_ge(*cur, Value(-69 * cur->value / 1024 - 500 * (pos.captures_to_hand() && pos.gives_check(*cur))))?
// Move losing capture to endBadCaptures to be tried later
true : (*endBadCaptures++ = *cur, false); }))
return *(cur - 1);