Computer Chess Club Archives


Search

Terms

Messages

Subject: Re: ASCII Board representation

Author: Steven Edwards

Date: 13:18:17 12/08/03

Go up one level in this thread


On December 08, 2003 at 15:54:34, Steven Edwards wrote:

>The console interface for Symbolic has:
>
>bRbNbBbQbKbBbNbR
>bPbPbPbPbPbPbPbP
>  ::  ::  ::  ::
>::  ::  ::  ::
>  ::  ::  ::  ::
>::  ::  ::  ::
>wPwPwPwPwPwPwPwP
>wRwNwBwQwKwBwNwR
>
>(Imagine monospace font for above.)
>
>However, Symbolic's default is to take the above, add rank and file labeling
>around the perimeter, and use the ANSI color escape sequences:
>
>red: white men
>blue: black men
>white: light squares
>green: dark squares
>black: rank digits and file letters
>
>Fast, simple, and portable to any ANSI color conformant terminal emulator, it
>works for me.

Amplifying the above:

1. The white and green colors for squares are for background colors; the
characters used for the men are foreground.  See the ANSI specification for
implementation details.

2. When Black is to move, the above is automatically flipped.

3. Colons are not used in the color output version.

4. Yes, the above output is small, but this is easily handled by increasing the
font size in the terminal emulator.



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.