Computer Chess Club Archives


Search

Terms

Messages

Subject: Re: ASCII chess boards

Author: David Paulowich

Date: 10:14:16 06/06/00

Go up one level in this thread


On June 05, 2000 at 07:49:11, Steffen Jakob wrote:

>Hi programmers!
>
>I would like to see how you print an ASCII chess board. At the moment my ASCII
>board looks like this:
>
DELETED
>
>Best wishes,
>Steffen.

I like to mark the black squares on my ASCII board.  Of course,
you cannot do this for squares occupied by black pieces,

  +---+---+---+---+---+---+---+---+
8 |=R=|=N=|=B=|=Q=|=K=|=B=|=N=|=R=|
  +---+---+---+---+---+---+---+---+
7 |=P=|=P=|=P=|=P=|=P=|=P=|=P=|=P=|
  +---+---+---+---+---+---+---+---+
6 |   |:::|   |:::|   |:::|   |:::|
  +---+---+---+---+---+---+---+---+
5 |:::|   |:::|   |:::|   |:::|   |
  +---+---+---+---+---+---+---+---+
4 |   |:::|   |:::|   |:::|   |:::|
  +---+---+---+---+---+---+---+---+
3 |:::|   |:::|   |:::|   |:::|   |
  +---+---+---+---+---+---+---+---+
2 | P |:P:| P |:P:| P |:P:| P |:P:|
  +---+---+---+---+---+---+---+---+
1 |:R:| N |:B:| Q |:K:| B |:N:| R |
  +---+---+---+---+---+---+---+---+
    a   b   c   d   e   f   g   h


 - David



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.