Interacting with PyChess from the shell (through stdin/stdout)

41 views
Skip to first unread message

Igma

unread,
May 26, 2019, 6:19:47 PM5/26/19
to PyChess People
Hello,

PyChess "talks" the UCI protocol to communicate with various chess engines, and i read that the UCI commands were passed through the standard input and output.

I failed to communicate with PyChess using simple shell commands. For instance, consider a simple set of UCI commands in a text file:

% cat commands
id name myfakechessengine
id author foo bar
uciok

Piping the file content to pychess provokes no reaction from pychess.

% cat commands | pychess

Am i missing something completely ? Is there any way to see if pychess tried to understand what was sent to it on stdin ?

Thanks.

Tamás Bajusz

unread,
May 26, 2019, 6:29:36 PM5/26/19
to PyChess People
PyChess is a chess GUI program, and the pychess startup script itself is not a chess engine at all. If you want to experiment with PyChess built in chess engine, try https://github.com/pychess/pychess/releases/download/0.99.4/pychess-engine-20181209.pyz which is an executable Python zip archive. You can run it with python3 or pypy3. Just notice that it doesn't support UCI protocol because it's a CECP/Xboard (http://hgm.nubati.net/CECP.html) protocol engine.

Hope this helps.
Reply all
Reply to author
Forward
0 new messages