Skip to content

Commit aa18645

Browse files
committed
fix tb bug when nonsense option is active
Elo | -0.19 +- 1.95 (95%) SPRT | 8.0+0.08s Threads=1 Hash=32MB LLR | 3.01 (-2.94, 2.94) [-4.50, 0.50] Games | N: 43294 W: 10929 L: 10953 D: 21412 Penta | [596, 5279, 9963, 5171, 638] https://nonlinear.eu.pythonanywhere.com/test/729/ bench: 2893718
1 parent 8b450ad commit aa18645

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

src/core.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -342,7 +342,7 @@ int Engine::negamax(int depth, int alpha, int beta, Stack* ss, bool cutnode){
342342
int static_eval, eval;
343343

344344
// tablebase probe
345-
if (tablebase_loaded && TB::probe_wdl(pos, eval)){
345+
if (!root_node && tablebase_loaded && TB::probe_wdl(pos, eval)){
346346
if (nonsense_stage == Nonsense::STANDARD
347347
|| nonsense_stage == Nonsense::CHECKMATE
348348
|| eval == 0)

utils/run_uci_search.cpp

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,13 @@ int main(){
1616
return 1;
1717
}
1818

19+
// uci_engine.process_uci_command("setoption name Hash value 8");
20+
// uci_engine.process_uci_command("setoption name Nonsense value true");
21+
// uci_engine.process_uci_command("setoption name SyzygyPath value C:/Users/nourb/OneDrive/Desktop/Chess_Engine/engine_executables/3-4-5_pieces_Syzygy/3-4-5");
22+
// std::this_thread::sleep_for(std::chrono::milliseconds(2000));
23+
24+
// uci_engine.engine.load_state("saved_state.bin");
25+
1926
while (std::getline(file, input)) {
2027
std::cout << "-> " << input << std::endl;
2128
running = uci_engine.process_uci_command(input);

0 commit comments

Comments
 (0)