Computer Chess Club Archives


Search

Terms

Messages

Subject: Re: Symbolic: mini-progress report 2004.03.25

Author: Tord Romstad

Date: 04:27:54 03/25/04

Go up one level in this thread


On March 25, 2004 at 06:27:36, Sune Fischer wrote:

>On March 25, 2004 at 00:06:38, Steven Edwards wrote:
>
>>I've selected the move 4... c6.  No expectation is available.  The predicted
>>variation is: (4... c6).  A total of 0.24 processor seconds were used for
>
>Don't you mean "zero point twenty-four processor seconds..."?

The Common Lisp function FORMAT resembles printf() in C, except that FORMAT
is much more versatile and powerful (it can almost be said to be a kind of
sub-language of Lisp, and learning it all is a big task).  A few examples
of printing numbers:

CL-USER> (format nil "This is the ~:R version of Symbolic" 23)
"This is the twenty-third version of Symbolic"

CL-USER> (format nil "Copyright (C) ~@R-~@R Steven Edwards." 2004 2019)
"Copyright (C) MMIV-MMXIX Steven Edwards."

CL-USER> (format nil "I have searched ~R nodes.  White has an advantage of ~R
centipawns." 35092344 219)
"I have searched thirty-five million ninety-two thousand three hundred
forty-four nodes.  White has an advantage of two hundred nineteen centipawns."

Unfortunately, AFAIK there is no way to output floating-point numbers in
English language.  Steven will have to write his own code for this.  :-)

Tord




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.