Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Python > Interfacing my chess client with GNU chess using python

Reply
Thread Tools

Interfacing my chess client with GNU chess using python

 
 
Varun Hiremath
Guest
Posts: n/a
 
      09-18-2006
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
-----------------------------------------------
Webpage : http://www.ae.iitm.ac.in/~ae03b032
-----------------------------------------------

 
Reply With Quote
 
 
 
 
Will McGugan
Guest
Posts: n/a
 
      09-18-2006

Varun Hiremath wrote:
> 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
--
http://www.willmcgugan.com

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to install Python on Debian GNU/Linux (Python-2.7.2.tar.bz2) patrickwayodi Python 6 12-14-2011 06:40 PM
Re: Any non-GNU compilers? sick of GNU copylefts Markus Elfring C++ 2 02-23-2005 10:24 PM
R e: 1 day gnu, whole life gnu? Peter Java 17 01-13-2005 03:32 PM
1 day gnu, whole life gnu? Peter Java 3 01-10-2005 02:26 PM
client-side scripting interfacing with viewstate? TR ASP .Net Web Controls 2 06-03-2004 08:51 PM



Advertisments