fairy-stockfish / Fairy-Stockfish

chess variant engine supporting Xiangqi, Shogi, Janggi, Makruk, S-Chess, Crazyhouse, Bughouse, and many more
https://fairy-stockfish.github.io/
GNU General Public License v3.0
617 stars 193 forks source link

Support holding command in UCI protocol #149

Closed antoyo closed 4 years ago

antoyo commented 4 years ago

Hi. It seems the holding command to set the pieces in hand for e.g. bughouse is not in the UCI protocol. Am I missing another way of doing that? Thanks.

ianfab commented 4 years ago

Since the UCI protocol does not maintain the game state like the CECP does, I assume the canonical way of doing it for UCI is to send a new position command with the updated holdings.

However, I am not sure if this is very relevant, since I am not aware of any GUI supporting bughouse via the UCI protocol, therefore I currently also only support partner communication via CECP and not via UCI protocol. Or where is the question coming from? Are you using it via CLI?

antoyo commented 4 years ago

Thanks. I didn't know it was the way to go.