Article View: gnu.chess
Article #370Re: Interested in programming a GTK frontend to gnuchess
From: Sean Hammond
Date: Fri, 23 Dec 2005 03:14
Date: Fri, 23 Dec 2005 03:14
76 lines
4603 bytes
4603 bytes
Okay, that documentation looks like exactly what I need. Great. It looks as if it *should* be pretty easy to interface with gnuchess once I get going. Now I just need to learn PyGTK! I'm currently supposed to be studying for a Ph.d. and should really be working on that, and I've never programmed with GTK before, so I can't promise much. On the other hand, I've been aching to learn GTK for ages and it's fun. I am thinking of writing a simple frontend that lets you play chess against the computer. If I get that far I don't think I'll go any further immediately. I'll publish the source code though. I've mocked up a frontend in Glade. Stuff will have to be added to it, no doubt, but anyway: http://seanh.freeshell.org/pmwiki/pmwiki.php?n=Main.PrawnChess Feedback appreciated. On 12/22/05, Simon Waters <simon@technocool.net> wrote: > > Sean Hammond wrote: > > > > I haven't been able to find a particularly modern-looking GNOME frontend > for > > gnuchess, and am interested in programming one with GTK+. > > Agreed, > > GNOME Chess was a start. > > > A lot of people "keep coming back to Xboard" because it is just > sufficient, but it had oddities, and no one wants to play with those > widgets these days. > > > Specifically I > > would like to use PyGTK. Where can I find information about the > interface > > gnuchess 5 offers for frontends? Is it simply a case of looking through > the > > gnuchess source, and if so, can someone point to a good starting point? > > It is documented in the xboard/winboard source tar ball. > > http://www.tim-mann.org/xboard/engine-intf.html > > When GNU Chess is started with "xboard" it is a trivial two pipe > communication with flushing of output (guaranteed), such as Perl > IPC::Open2 expects. > > > I noticed gnuchess itself has a text interface, I suppose I could > probably > > just write a program that communicates with gnuchess through that, but I > > would have to know what the commands are. > > Covered above. > > However I think the protocol may need extending to cover extras for a > really comprehensive program, as I think it make sense to use an engine > (GNU Chess) for most of the chess logic. Such as "what are the legal > moves here", and information from book etc. > > It is a difficult call as that might make an interface engine specific > (or alternatively it could use an instance of GNU Chess for its "logic", > without pondering, and use another Winboard engine as an opponent?). > -- Sean's mailing list bin
Technical Details
Message-ID:
<mailman.20226.1135307713.20277.info-gnu-chess@gnu.org>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!newsfeed.stanford.edu!shelby.stanford.edu!not-for-mailReferences:
<22fe482e0512221201y1482171aw504115107f1cecae@mail.gmail.com> <43AB3D67.3080803@technocool.net>Show Full Headers
Complete Article Headers
X-Google-Thread: 10d71d,a28cb4dedd2059d1 X-Google-Attributes: gid10d71d,public X-Google-Language: ENGLISH,ASCII-7-bit Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!newsfeed.stanford.edu!shelby.stanford.edu!not-for-mail From: Sean Hammond <sean.hammond@gmail.com> Newsgroups: gnu.chess Subject: Re: Interested in programming a GTK frontend to gnuchess Date: Fri, 23 Dec 2005 03:14:06 +0000 Lines: 76 Approved: info-gnu-chess@gnu.org Message-ID: <mailman.20226.1135307713.20277.info-gnu-chess@gnu.org> References: <22fe482e0512221201y1482171aw504115107f1cecae@mail.gmail.com> <43AB3D67.3080803@technocool.net> NNTP-Posting-Host: lists.gnu.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: news.Stanford.EDU 1135307650 13458 199.232.76.165 (23 Dec 2005 03:14:10 GMT) X-Complaints-To: news@news.stanford.edu To: info-gnu-chess@gnu.org Envelope-to: info-gnu-chess@gnu.org DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; b=NEAp5ttCTUE9+K8J+oYhbA9j3ERc0QBwXpOvY3rA/KgiWr/0gCyjPqxyWqrH8JMLQ+5JJlUQ1PPlWt7abPPd/4dhjLiJEYWRfuQbkbqV6j1fm3g6RJ3G3lFHnxCKXiotbjwfL4fLWBT9UhXTX0/z3E68nZXfu16fkw49jJCRnD4= In-Reply-To: <43AB3D67.3080803@technocool.net> Content-Disposition: inline X-Content-Filtered-By: Mailman/MimeDel 2.1.5 X-BeenThere: info-gnu-chess@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Announcements and discussions about GNU Chess <info-gnu-chess.gnu.org> List-Unsubscribe: <http://lists.gnu.org/mailman/listinfo/info-gnu-chess>, <mailto:info-gnu-chess-request@gnu.org?subject=unsubscribe> List-Archive: <http://lists.gnu.org/pipermail/info-gnu-chess> List-Post: <mailto:info-gnu-chess@gnu.org> List-Help: <mailto:info-gnu-chess-request@gnu.org?subject=help> List-Subscribe: <http://lists.gnu.org/mailman/listinfo/info-gnu-chess>, <mailto:info-gnu-chess-request@gnu.org?subject=subscribe>