nomemory / andreinc-site

My personal blog
9 stars 4 forks source link

2021/04/22/writing-a-universal-chess-interface-client-in-java #13

Closed utterances-bot closed 1 year ago

utterances-bot commented 2 years ago

Writing a Universal Chess Interface (UCI) Client in Java | andreinc

A step-by-step guide on how to implement an UCI client in Java.

https://www.andreinc.net/2021/04/22/writing-a-universal-chess-interface-client-in-java

WillGoldthwaite commented 2 years ago

When I'm trying to use the client.start("stockfish") command, it just gives me an error saying that it cannot run the program "stockfish" as there is no such file or directory. I have stockfish installed in my command line and I can use it inside the terminal. I am using a Macbook M1 Pro if that helps.

Thanks

WillGoldthwaite commented 2 years ago

Another thing to add is when I type in client.start("test"); instead of client.start("stockfish"); it gives me no error but does not display anything.

nomemory commented 2 years ago

@WillGoldthwaite you need to have stockfish in the path. Otherwise you will need to give it the full path to the executable.

breitling commented 1 month ago

The UCI protocol doesn't show a "go bestmove" command but your software uses this command. Is "go bestmove" a valid UCI command?