Article View: comp.lang.perl.misc
Article #372Parsing gnuchess output
From: Michael Kerry
Date: Thu, 25 Jul 1996 00:00
Date: Thu, 25 Jul 1996 00:00
16 lines
1324 bytes
1324 bytes
Can anyone give me a hint as to how to go about writing a perl script to act as an interface to gnuchess? I am not concerned with a graphical interface at this point, just the mechanics of inputing moves to the gnuchess engine and then receiving responses. I tried fiddling around with opening a handle to "gnuchessc |" and reading from it (which seemed to work), but then how do you input moves? Is there a bi-directional pipe?!? Surely there's a more clever way... Yes, this is a silly thing to want to do, but I'm doing it more to learn perl rather than to write a gnuchess interface, since there's already a bunch out there. Thanx. -MK
Technical Details
Message-ID:
<31F7E0C5.218D@icf.hrb.com>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10d71d,458d07b729e8663,start X-Google-Attributes: gid10d71d,public X-Google-Thread: 110df2,458d07b729e8663,start X-Google-Attributes: gid110df2,public X-Google-Thread: fa0ae,458d07b729e8663,start X-Google-Attributes: gidfa0ae,public From: Michael Kerry <msk@icf.hrb.com> Subject: Parsing gnuchess output Date: 1996/07/25 Message-ID: <31F7E0C5.218D@icf.hrb.com> X-Deja-AN: 170299967 content-type: text/plain; charset=us-ascii organization: HRB Systems mime-version: 1.0 newsgroups: comp.lang.perl.misc,rec.games.chess.computer,gnu.chess x-mailer: Mozilla 2.01 (X11; I; SunOS 5.3 sun4m)