🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: net.games.chess
Article #24

script to get a picture of a game in progress

#24
From: David Sherman
Date: Mon, 16 Dec 1985 18:33
29 lines
1424 bytes
Has anyone worked out a script which will make it easy
to turn a gamescore (or partial score) into a picture of
the board? Roughly, I want to take
	1. P-K4  P-K4
	2. P-KB4 PxP
and have it automatically turned into

/usr/games/chess <<EOF
manual
p-k4
p-k4
p-kb4
pxp

EOF
(Note the extra blank line, which will cause the board to be printed.)

Extra bonus points for ignoring initial irrelevant stuff (a la patch(1)),
so you can, in theory, save mail or news and run it right through the
ChessGameScorePlayer program. Also, an option to put a blank line after
every full move, so that the user can see the board as it develops, would
be nice. This could be done in either sh or C. Make a nice little
assignment for someone who has undergrad students learning programming :-)

Dave Sherman
The Law Society of Upper Canada
Toronto
-- 
{  ihnp4!utzoo  pesnta  utcs  hcr  decvax!utcsri  }  !lsuc!dave
Technical Details
Message-ID: <977@lsuc.UUCP>
Path: arc1-ca.pugleaf.net!utzoo!lsuc!dave

Show Full Headers
Complete Article Headers
Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP
Posting-Version: version B 2.10.2 9/18/84; site lsuc.UUCP
Path: arc1-ca.pugleaf.net!utzoo!lsuc!dave
From: dave@lsuc.UUCP (David Sherman)
Newsgroups: net.games.chess,net.unix
Subject: script to get a picture of a game in progress
Message-ID: <977@lsuc.UUCP>
Date: Mon, 16-Dec-85 13:33:51 EST
Article-I.D.: lsuc.977
Posted: Mon Dec 16 13:33:51 1985
Date-Received: Mon, 16-Dec-85 19:11:42 EST
Organization: Law Society of Upper Canada, Toronto
Lines: 29