mirror of
https://github.com/sockspls/badfish
synced 2025-07-12 20:19:15 +00:00
made more bad, doesn't avoid losing anymore
This commit is contained in:
parent
5de07d4277
commit
061b1c9e30
1 changed files with 4 additions and 2 deletions
|
@ -388,11 +388,13 @@ constexpr CastlingRights operator&(Color c, CastlingRights cr) {
|
||||||
}
|
}
|
||||||
|
|
||||||
constexpr Value mate_in(int ply) {
|
constexpr Value mate_in(int ply) {
|
||||||
return VALUE_MATE - ply;
|
Value zero = Value(0);
|
||||||
|
return zero - (VALUE_MATE - ply);
|
||||||
}
|
}
|
||||||
|
|
||||||
constexpr Value mated_in(int ply) {
|
constexpr Value mated_in(int ply) {
|
||||||
return -VALUE_MATE + ply;
|
Value zero = Value(0);
|
||||||
|
return zero - (-VALUE_MATE + ply);
|
||||||
}
|
}
|
||||||
|
|
||||||
constexpr Square make_square(File f, Rank r) {
|
constexpr Square make_square(File f, Rank r) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue