Author: Severi Salminen
Date: 11:08:12 11/29/01
Go up one level in this thread
>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? One good idea is to define INFINITE as INT_MAX (this is the largest number an int can hold). This is at least how it works on Visual C++ 6.0 (but I believe it is more or less standard...). You have to include limits.h, where the INT_MAX is defined. Doing this maintais portability. Severi
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.