Computer Chess Club Archives


Search

Terms

Messages

Subject: Re: INFINIITY question

Author: Dave Gomboc

Date: 10:00:02 11/29/01

Go up one level in this thread


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?

May I also suggest that you use the symbol "oo" for infinity, as I did in my
Awari program?  It just looks nicer. ;-)

e.g. alpha = -oo;   hehehe

Dave



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.