Giter Club home page Giter Club logo

Comments (10)

jhonnold avatar jhonnold commented on August 17, 2024 1

Fixed in #520

from berserk.

jhonnold avatar jhonnold commented on August 17, 2024

Interesting, I haven't touched my UCI code in a long time. I'll take a look and get back to you.

from berserk.

jhonnold avatar jhonnold commented on August 17, 2024

I've been able to reproduce your issue.

I compiled these binaries using clang-17 within clang64 MSYS2. Compiling these natively in Windows with gcc-13 results in the issue going away. I don't have an explanation as to why, but I've re-uploaded the binaries.

Feel free to close this issue if you see the issue go away too.

from berserk.

SzotsGabor avatar SzotsGabor commented on August 17, 2024

I've been able to reproduce your issue.

I compiled these binaries using clang-17 within clang64 MSYS2. Compiling these natively in Windows with gcc-13 results in the issue going away. I don't have an explanation as to why, but I've re-uploaded the binaries.

Feel free to close this issue if you see the issue go away too.

Sorry Jay, nothing's changed.

BTW, version 11.1 does the same (as expected). And under a GUI such as Cute Chess the engine plays OK.

Here is another snippet how it is here:
uci
a
id name Berserk 12
id author Jay Honnold
option name Hash type spin default 16 min 2 max 131072
option name Threads type spin default 1 min 1 max 256
option name SyzygyPath type string default
option name MultiPV type spin default 1 min 1 max 256
option name Ponder type check default false
option name UCI_ShowWDL type check default true
option name UCI_Chess960 type check default false
option name MoveOverhead type spin default 300 min 100 max 10000
option name Contempt type spin default 0 min -100 max 100
option name EvalFile type string default
uciok
position startpos
a
go depth 15
a
info string time -1 start 1290566453 alloc 0 max 2147483647 depth 15 timeset 0 searchmoves 0
info depth 1 seldepth 1 multipv 1 score cp 52 wdl 164 825 11 nodes 24 nps 24000 hashfull 0 tbhits 0 time 1 pv d2d4
info depth 2 seldepth 2 multipv 1 score cp 75 wdl 271 723 6 nodes 47 nps 47000 hashfull 0 tbhits 0 time 1 pv d2d4 a7a6
info depth 3 seldepth 3 multipv 1 score cp 83 wdl 315 680 5 nodes 82 nps 82000 hashfull 0 tbhits 0 time 1 pv c2c4 a7a6
info depth 4 seldepth 4 multipv 1 score cp 58 wdl 187 804 9 nodes 137 nps 137000 hashfull 0 tbhits 0 time 1 pv c2c4 a7a6 a2a3
info depth 5 seldepth 5 multipv 1 score cp 92 wdl 367 629 4 nodes 397 nps 397000 hashfull 0 tbhits 0 time 1 pv e2e4
info depth 6 seldepth 6 multipv 1 score cp 85 wdl 327 669 4 nodes 704 nps 704000 hashfull 0 tbhits 0 time 1 pv e2e4 c7c5 g1f3 g7g6 d2d4
info depth 7 seldepth 8 multipv 1 score cp 53 wdl 167 822 11 nodes 2254 nps 2254000 hashfull 0 tbhits 0 time 1 pv d2d4 g8f6 g1f3 d7d5 c2c4 d5c4
info depth 8 seldepth 9 multipv 1 score cp 49 wdl 152 836 12 nodes 4123 nps 4123000 hashfull 1 tbhits 0 time 1 pv e2e4 c7c5 g1f3 e7e6 b1c3 b8c6 d2d4 c5d4 f3d4
info depth 9 seldepth 12 multipv 1 score cp 57 wdl 182 808 10 nodes 9309 nps 9309000 hashfull 3 tbhits 0 time 1 pv e2e4 e7e5 g1f3 g8f6 f3e5 f6e4
info depth 10 seldepth 12 multipv 1 score cp 53 wdl 169 820 11 nodes 13525 nps 901666 hashfull 5 tbhits 0 time 15 pv e2e4 c7c5 g1f3 e7e6 f1e2 b8c6 c2c3 g8f6 e4e5 f6d5 e1g1 f8e7
info depth 11 seldepth 15 multipv 1 score cp 47 wdl 146 841 13 nodes 28863 nps 1924200 hashfull 12 tbhits 0 time 15 pv e2e4 e7e6 d2d4 d7d5 b1d2 c7c5 e4d5 e6d5 g1f3 b8c6 f1b5 d8e7
info depth 12 seldepth 16 multipv 1 score cp 48 wdl 150 838 12 nodes 37668 nps 1215096 hashfull 15 tbhits 0 time 31 pv e2e4 e7e6 g1f3 d7d5 e4e5 c7c5 c2c3 b8c6 d2d4 d8b6 f1e2 c8d7 e1g1 c5d4 c3d4
info depth 13 seldepth 18 multipv 1 score cp 48 wdl 150 838 12 nodes 67931 nps 1445340 hashfull 25 tbhits 0 time 47 pv e2e4 e7e6 d2d4 d7d5 b1d2 c7c5 g1f3 g8f6 e4e5 f6d7 c2c3 b8c6 f1d3 f8e7 e1g1 c5d4
info depth 14 seldepth 22 multipv 1 score cp 45 wdl 139 848 13 nodes 104001 nps 1677435 hashfull 38 tbhits 0 time 62 pv e2e4 e7e6 d2d4 d7d5 e4e5 c7c5 c2c3 d8b6 g1f3 b8c6 f1e2 c8d7 e1g1 c5d4
info depth 15 seldepth 23 multipv 1 score cp 38 wdl 117 867 16 nodes 166982 nps 1795505 hashfull 60 tbhits 0 time 93 pv e2e4 e7e6 d2d4 d7d5 e4e5 c7c5 c2c3 d8a5 d4c5 a5c7 b2b4 c7e5 f1e2 e5c7 g1f3 g8f6
bestmove e2e4 ponder e7e6

So every time I type a command I have to type some character to make the engine execute it.

from berserk.

jhonnold avatar jhonnold commented on August 17, 2024

Are you using a special prompt? I've tested these binaries in Window Terminal, CMD, Git Bash, and MSYS2 clang64. I cannot create the above issue you're mentioning anymore.

from berserk.

SzotsGabor avatar SzotsGabor commented on August 17, 2024

Are you using a special prompt? I've tested these binaries in Window Terminal, CMD, Git Bash, and MSYS2 clang64. I cannot create the above issue you're mentioning anymore.

I'm afraid I don't know what you mean by special prompt. I started the engine under Windows File Manager and Total Commander and both did the same.
I have asked Ray to check if it is OK with him now.

Anyway, we could live with this issue for years (I have just noticed it exists at all), so no big deal. I may ask Shuffle author what he did to get rid of it.

from berserk.

jhonnold avatar jhonnold commented on August 17, 2024

I would appreciate that. Sorry for the issues.

from berserk.

SzotsGabor avatar SzotsGabor commented on August 17, 2024

This is what Arjun Basandrai, Shuffle author has written to me:

"In my case the error was caused by a line at the beginning of the uci loop that set the stdin buffer to NULL.

I see that in Berserk's code also, in uci.c on Line 286, (setbuf(stdin, NULL);) is added which must be causing the issue. Kindly ask the author to remove this line entirely and see if it fixes the issue."

I removed that line and it indeed helped!

from berserk.

jhonnold avatar jhonnold commented on August 17, 2024

I'll remove that line, but I don't think there is a need to update the binaries since they're okay within GUIs for now.

from berserk.

SzotsGabor avatar SzotsGabor commented on August 17, 2024

I'll remove that line, but I don't think there is a need to update the binaries since they're okay within GUIs for now.

That's fine with me.

from berserk.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.