Aryan1508 / Bit-Genie

UCI chess engine in C++
GNU General Public License v3.0
23 stars 4 forks source link

Bit-Genie v9 loses on time in CuteChess #212

Closed tissatussa closed 2 years ago

tissatussa commented 2 years ago

i successfully compiled your newest v9 source code into a 64-bit Linux binary .. then, playing in CuteChess, the engine loses on time at the very last move of the timecontrol : i gave 8 minutes per 40 moves plus 3 seconds bonus (and 1000 ms margin) .. this happens with both White and Black .. see screenshots below .. the engine seems to calculate exactly 15 sec each move but fails to mention the remaining time ..

is some counter 1 off ? then it should be an easy fix !

bit-genie_v9_loses_on_time1

bit-genie_v9_loses_on_time2

Aryan1508 commented 2 years ago

Is this the latest commit (95c5cc19f721ba1c6a467b77a79c974b37e5a96d), or the previous release? (https://github.com/Aryan1508/Bit-Genie/releases/tag/v9)

tissatussa commented 2 years ago

i just did git clone https://github.com/Aryan1508/Bit-Genie.git and compiled ..

Aryan1508 commented 2 years ago

Alright, that must the latest commit and not v9. Thanks for the information, I'm looking into it

tissatussa commented 2 years ago

after the command uci i see : id name Bit-Genie 9

Aryan1508 commented 2 years ago

Can you send the full uci output?

tissatussa commented 2 years ago
$ ./Bit-Genie_v9_compiled_HP 
Bit-Genie by Aryan Parekh
uci
id name Bit-Genie 9
id author Aryan Parekh
option name Hash type spin default 8 min 2 max 3000
option name Clear Hash type button
option name OwnBook type check default false
option name BookPath type string
uciok
Aryan1508 commented 2 years ago

Okay, this is v9 and not the latest source.

tissatussa commented 2 years ago

OK, point me to the latest / good version .. is the 'normal' git clone version not OK ?

Aryan1508 commented 2 years ago

When did you clone it?

tissatussa commented 2 years ago

about 4 hours ago

tissatussa commented 2 years ago

and you could add a 9.x sub-numbering !?

Aryan1508 commented 2 years ago
git clone https://www.github.com/Aryan1508/Bit-Genie
cd Bit-Genie/src
make
./Bit-Genie
uci

should give

id name Bit-Genie 9.23
id author Aryan Parekh
id network 139cc2fa
option name Hash type spin default 8 min 2 max 262144
option name Threads type spin default 1 min 1 max 1024
option name Clear Hash type button
option name OwnBook type check default false
option name BookPath type string
uciok

but the issue persists in the latest source too

tissatussa commented 2 years ago

exactly ! I just did these commands and the outcome is just like that ! Does git clone https://www.github.com/Aryan1508/Bit-Genie differ from git clone https://www.github.com/Aryan1508/Bit-Genie.git as i mentioned ? - with(out) the '.git' ? Or did you change the master code in the meantime ?

Aryan1508 commented 2 years ago

are you sure you're running the correct executable after make? (Bit-Genie)

tissatussa commented 2 years ago

my first compiled version (4 hours ago) is 522 Kb and the second (v9.23) is 1.6 Mb

tissatussa commented 2 years ago

your makefile creates only 1 binary, called 'Bit-Genie' ..

Aryan1508 commented 2 years ago

you were using probably using an old compile, the last change to master was made over a month ago. You can continue to use 9.23 as the latest Bit-Genie version. I will commit a fix for the issue in a bit

tissatussa commented 2 years ago

i'm on Xubuntu 21.10

tissatussa commented 2 years ago

thanks. I tried to describe what i did and what happened, as good as i'm able to .. i'm confused about these different versions .. anyhow, i have a working version 9.23 now ..

tissatussa commented 2 years ago

in CuteChess (newest v1.2.0) the compiled Bit-Genie v9.23 also loses on time :

bit-genie_v9_loses_on_time3

Aryan1508 commented 2 years ago

Fixed, #213