Is it possible to get PyChess.py engine to work with xboard?

91 views
Skip to first unread message

kun qian

unread,
Dec 19, 2011, 3:14:17 PM12/19/11
to pychess...@googlegroups.com
I have been reading the source code for the PyChess.py engine and was wondering if I could get PyChess.py to work with xboard?

Tamás Bajusz

unread,
Dec 27, 2011, 9:29:49 AM12/27/11
to pychess...@googlegroups.com
Sure! But PyChess.py itself is a rather week and slow xboard compatible engine.
You better to use Stockfish or others :)

On Mon, Dec 19, 2011 at 9:14 PM, kun qian <kqi...@gmail.com> wrote:
> I have been reading the source code for the PyChess.py engine and was
> wondering if I could get PyChess.py to work with xboard?
>

> --
> You received this message because you are subscribed to the Google Groups
> "PyChess People" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/pychess-people/-/mqLr7_vL3EUJ.
> To post to this group, send email to pychess...@googlegroups.com.
> To unsubscribe from this group, send email to
> pychess-peopl...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/pychess-people?hl=en.

kun qian

unread,
Dec 27, 2011, 4:03:30 PM12/27/11
to PyChess People
I am not sure how to set it up with xboard. Could you tell me the
commands?

Tamás Bajusz

unread,
Feb 22, 2013, 3:47:05 PM2/22/13
to pychess...@googlegroups.com
Yes, I know this is an old thread, but :)
As winboard/xboard 4.7.0 just came out (http://www.gnu.org/software/xboard/whats_new/4.7.0/index.html)
I played with it a bit and fixed some PyChess engine regressions to let it run with xboard.
So, if you cloned pychess to your home, you can do this creating a script containing:

#!/bin/sh
PYTHONPATH=~/pychess/lib/ ~/pychess/lib/pychess/Players/PyChess.py xboard

Save this as pc (or anything else you like), and give it run permission.
Now you can use it with xboard, for example to play a new crazyhouse game type:
xboard -fcp ./pc -variant crazyhouse

Have fun! :)
Reply all
Reply to author
Forward
0 new messages