Interfacing my chess client with GNU chess using python

V

Varun Hiremath

Hello,
I have written a chess client using python which is a graphic
interface to play chess. It is at present a two player version,
players move their peices by clicking two squares on the board as
in any other chess clients.
Now i want to interface my program with the already available
gnuchess program. Basically i want to feed the user input to the
gnuchess and get the output and then display in my GUI. I have read
about Popen but i couldn't figure out how to do it. Is there any
other better ways of doing it. Any help would be appreciated.



--
-----8<----------8<----------8<----------8<----
Varun Hiremath
Undergraduate Student,
Aerospace Engg. Department,
Indian Institute of Technology Madras,
Chennai, India
 
W

Will McGugan

Varun said:
Hello,
I have written a chess client using python which is a graphic
interface to play chess. It is at present a two player version,
players move their peices by clicking two squares on the board as
in any other chess clients.
Now i want to interface my program with the already available
gnuchess program. Basically i want to feed the user input to the
gnuchess and get the output and then display in my GUI. I have read
about Popen but i couldn't figure out how to do it. Is there any
other better ways of doing it. Any help would be appreciated.

The subprocess module may help you...

http://docs.python.org/dev/lib/module-subprocess.html


Will McGugan
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,581
Members
45,056
Latest member
GlycogenSupporthealth

Latest Threads

Top