Computer Chess Club Archives


Search

Terms

Messages

Subject: Printing Output of a Chess Engine - Crafty

Author: Joshua Haglund

Date: 02:10:08 01/09/03


I would like to print the output of a chess engine directly from the engine.

Say for example:

Crafty implemented the ability to print to a printer.


Crafty v20.1 (1 cpus)





White(1): board



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



White(1): print

Looking for printer...

BJC-4304 found...

Printing...
Page 1 of 1
Done.

White(1):

Now the board above would have printed too my printer.

I want to do this in C++ though. I've looked everywhere and even asked an
instructor(bad) how to accomplish this?

No clue.

Looking for some help,

Joshua
toneewa@yahoo.com



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.