Skip to content

Commit

Permalink
Merge pull request official-stockfish#211 from ianfab/crazyhouse-see
Browse files Browse the repository at this point in the history
Tweak crazyhouse SEE
  • Loading branch information
ddugovic committed Jan 8, 2017
2 parents 0cad9a3 + aaccce0 commit 7c78b9c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/position.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1746,6 +1746,10 @@ Value Position::see<ATOMIC_VARIANT>(Move m) const {
bool Position::see_ge(Move m, Value v) const {

assert(is_ok(m));
#ifdef CRAZYHOUSE
if (is_house())
v /= 2;
#endif

#ifdef THREECHECK
if (is_three_check() && gives_check(m))
Expand Down

0 comments on commit 7c78b9c

Please sign in to comment.