🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: net.games.chess
1 messages
1 total messages Started by David Sherman Mon, 16 Dec 1985 18:33
script to get a picture of a game in progress
#24
Author: 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
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads