Computer Chess Club Archives


Search

Terms

Messages

Subject: Re: All I need is the <directive(s)>

Author: Joshua Haglund

Date: 22:48:28 01/09/03

Go up one level in this thread


I'm probably better off making a .log_file of some_sort.

Joshua
toneewa@yahoo.com


On January 09, 2003 at 11:21:37, Robert Hyatt wrote:

>On January 09, 2003 at 10:44:26, Joshua Haglund wrote:
>
>>On January 09, 2003 at 05:10:08, Joshua Haglund wrote:
>>
>>>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
>>
>>#include <iostream>
>>What else?
>
>
>open a stream to your printer device.  If it is a network printer you have a
>_lot_ of work
>to do.  Even if it isn't, you have to deal with different types of printers.  I
>would use the
>html output code in Crafty and then figure out how to execute a process that can
>print html.



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.