DOBRO / binbo

Chess representation written in Erlang using Bitboards, ready for use on game servers
Apache License 2.0
124 stars 12 forks source link

Engine over TCP #7

Closed ballPointPenguin closed 2 years ago

ballPointPenguin commented 2 years ago

I love this library! Thanks for the great work.

I wonder if it's feasible to make use of an engine over TCP, such as stockfish in a docker container, hosted or otherwise.

Alternately I think I could co-locate binbo and stockfish in one container together.

DOBRO commented 2 years ago

It's definitely possible. I would write OTP application that contains TCP socket acceptor in front that transmits processed packets to Binbo, and Binbo communicates with Stockfish over UCI.

And yes, Binbo and Stockfish must be placed on the same machine/container. There is no way to create a connection between Binbo and the engine over TCP yet.

DOBRO commented 2 years ago

Since Binbo 4.0.0 TCP connections to remote engines are natively supported. I added some examples to Quick start section https://github.com/DOBRO/binbo#quickstart-uci-over-tcp

Enjoy!