Skip to content

Commit 4b0fb15

Browse files
committed
Goldfish v1.2: Check extension.
This probably hurts the benchmark quite a bit, but testing shows an improvement in strength. # PLAYER : RATING POINTS PLAYED (%) 1 goldfish-v1.2 : 2349.7 17.0 30 57 2 goldfish-v1.1 : 2302.7 31.5 62 51 3 goldfish-v1.0 : 2247.5 13.5 32 42
1 parent 92394cb commit 4b0fb15

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

CMakeLists.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ enable_language(CXX)
1717
# by including "projectmeta.hpp" in the source.
1818
# See projectmeta.hpp.in for some more details.
1919
set(PROJECT_VERSION_MAJOR 1)
20-
set(PROJECT_VERSION_MINOR 1)
20+
set(PROJECT_VERSION_MINOR 2)
2121

2222

2323
# Include stuff. No change needed.

src/search.cpp

+3
Original file line numberDiff line numberDiff line change
@@ -411,6 +411,9 @@ int Search::search(int depth, int alpha, int beta, int ply) {
411411
return Value::DRAW;
412412
}
413413

414+
if (position.is_check())
415+
depth += 1;
416+
414417
// Initialize
415418
int best_value = -Value::INFINITE;
416419
int searched_moves = 0;

0 commit comments

Comments
 (0)