From d67a62a7eb7e335587a0cde825d67bc4eb87404e Mon Sep 17 00:00:00 2001 From: PGG106 Date: Tue, 6 Dec 2022 16:50:47 +0100 Subject: [PATCH] revert TM change for X/Y time controls Bench: 5299844 --- src/time_manager.cpp | 8 ++------ src/uci.cpp | 5 ++--- 2 files changed, 4 insertions(+), 9 deletions(-) diff --git a/src/time_manager.cpp b/src/time_manager.cpp index 3fc8ed49..9805ccdd 100644 --- a/src/time_manager.cpp +++ b/src/time_manager.cpp @@ -17,12 +17,8 @@ void optimum(S_Board* pos, S_SearchINFO* info, int time, int inc) { time -= safety_overhead; int time_slot = time / info->movestogo; int basetime = (time_slot); - //optime is the time we check anytime we clear a depth - int optime = basetime * 0.6; - //maxtime is the absolute maximum time we can spend on the current depth - int maxtime = (std::min)(time, basetime * 5/3); - info->stoptimeMax = info->starttime + maxtime; - info->stoptimeOpt = info->starttime + optime; + info->stoptimeMax = info->starttime + basetime; + info->stoptimeOpt = info->starttime + basetime; } else { diff --git a/src/uci.cpp b/src/uci.cpp index 8bd4800a..3c0b37fc 100644 --- a/src/uci.cpp +++ b/src/uci.cpp @@ -260,7 +260,7 @@ void Uci_Loop(S_Board* pos, S_Stack* ss, S_SearchINFO* info, char** argv) { char input[40000]; std::thread search_thread; // print engine info - printf("id name Alexandria 4.0-dev\n"); + printf("id name Alexandria 3.1.0\n"); // main loop while (1) { @@ -343,11 +343,10 @@ void Uci_Loop(S_Board* pos, S_Stack* ss, S_SearchINFO* info, char** argv) { // parse UCI "uci" command else if (strncmp(input, "uci", 3) == 0) { // print engine info - printf("id name Alexandria 4.0-dev\n"); + printf("id name Alexandria 3.1.0\n"); printf("id author PGG\n"); printf("option name Hash type spin default 16 min 1 max 8192 \n"); printf("option name Threads type spin default 1 min 1 max 1 \n"); - printf("option name Datagen type check default false \n"); printf("uciok\n"); }