Computer Chess Club Archives


Search

Terms

Messages

Subject: Re: INFINIITY question

Author: Tim Foden

Date: 10:22:25 11/30/01

Go up one level in this thread


On November 28, 2001 at 15:31:52, Derek Mauro wrote:

>On November 28, 2001 at 13:41:26, Tony Werten wrote:
>
>>On November 28, 2001 at 13:05:23, Derek Mauro wrote:
>>
>>>When I call search(), I'm supposed to be using -INFINITY as alpha and INFINITY
>>>as beta.  Anyway, I've never used INFINITY in a program before.  How do I use
>>>INFINIITY?  Do I need to include a special library or just define it as the
>>>largest possible int value, or something else?
>>
>>Just use the value you use for checkmate (without depth correction ) That's
>>infinite enough.
>>
>>Tony
>
>Thanks.  I figured there was no way to represent infinity on a computer and I
>was testing it with the mate score.  I was really just wondering about the whole
>thing.

Well... actually in IEEE floating point both +INF and -INF are valid values. :)

But in an integer, there is no automatic way, no.

Cheers, Tim.



This page took 1.82 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.