Computer Chess Club Archives


Search

Terms

Messages

Subject: Re: Warning! Long demystified chess program (explosion of Eugene's posting)

Author: Gareth McCaughan

Date: 08:42:49 06/30/99

Go up one level in this thread


Eugene Nalimov wrote:

> I looked at the program for 2 minutes, and here are my findings:
>
> Macro a(x) in the original program is abs(x).
> Macro m(x) in the original program is sign(x).
>
> I'd recommend to revert back to macro calls. sign(v) is much more readable
> than (v < 0 ? -1 : !!v).

Dead right. I looked only at Dan's exploded version, so I didn't see
that there were macros for useful things like abs and sign.



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.