Author: Tim Mirabile
Date: 17:01:21 01/07/00
Go up one level in this thread
On January 07, 2000 at 19:12:55, Dann Corbit wrote:
>Several people seem to somehow imagine that I came up with the clever chess
>board pictures. It was Tim, not me, who managed the feat.
>
>To make a nice picture of a chess board, just take your EPD string, and prefix
>it with [D] {Might be interesting to see what happens with a bare 'D' like this
>one}.
Nothing will happen, but a [d] will also work. Also, nothing should happen if
the EPD is misformed (anyone is welcome to see if they could expose a bug in
this code, however).
Some were curious as to how the code worked. Basically I added a subroutine
consisting of about 50 lines of Perl to the existing script which takes the raw
message file (the same as you see in the archives) and formats it for display as
an HTML document. Each line of the message body is scanned for the [D] followed
by something which looks like a line of EPD (eight fields of 1-8 mixed chess
piece letters and/or digits separated by slashes and followed by a space and
then a w or b). Once this is found it is converted to an array representing the
position, then this is converted to an HTML table containing the appropriate
<IMG> tags in each square.
This page took 0 seconds to execute
Last modified: Thu, 15 Apr 21 08:11:13 -0700
Current Computer Chess Club Forums at Talkchess. This site by Sean Mintz.