Computer Chess Club Archives


Search

Terms

Messages

Subject: Re: boundschecking

Author: Uri Blass

Date: 00:39:10 11/04/02

Go up one level in this thread


On November 04, 2002 at 03:18:55, Tony Werten wrote:

>On November 03, 2002 at 13:50:41, Uri Blass wrote:
>
>>On November 03, 2002 at 13:37:33, Vincent Diepeveen wrote:
>>
>>>On November 03, 2002 at 13:07:07, Uri Blass wrote:
>>>
>>>>On November 03, 2002 at 11:50:01, Vincent Diepeveen wrote:
>>>>
>>>>>On November 03, 2002 at 11:26:42, Brian Kostick wrote:
>>>>>
>>>>>for windows there is numega boundschecker.
>>>>>
>>>>>for linux there is the excellent free boundschecker (C only)
>>>>>see for example: http://web.inter.nl.net/hcc/Haj.Ten.Brugge/
>>>>>
>>>>>however you can also go to the homepage from gcc and then go
>>>>>to 'extensions' and download any boundschecker you need for
>>>>>use with gcc. it's very good.
>>>>
>>>>Thanks
>>>>I see that I can download a trial version of numega boundchecker so
>>>>I guess that I am going to try it tomorrow.
>>>>
>>>>I use only windows.
>>>>
>>>>Note that inspite of the unequal number of nodes in debug mode and in release
>>>>mode the bug does not seem to prevent it to play well in games.
>>>
>>>?? you don't have deterministic number of nodes?
>>>
>>>Debug it!
>>
>>I have deterministic number of nodes in release mode or in debug mode but the
>>numbers are not equal.
>>
>>The first different number is more than 100000.
>>
>>>
>>>no need for a boundschecker even to debug that.
>>>
>>>>The difference is small and I see it only after more than 100000 nodes so maybe
>>>>the problem is that the random numbers in debug mode are not the same as the
>>>>random numbers in release mode.
>>>
>>>wait a minute. are you telling me that you use the rand() function
>>>in your program to evaluate?
>>>
>>>Comon you gotta be joking?
>>
>>Only for my hash tables
>>
>>I have
>>for (fil=0;fil<6;fil++)
>>		for (i=0;i<2;i++)
>>			for (j=0;j<64;j++)
>>				zobrist[fil][i][j]=rand64();
>
>Normally it is possible to feed your rnd function an initialisation seed wich
>should give you the same "random" numbers all the time.
>
>I think it's randomize(seed).
>
>Tony

I can see randomize when I click F1 only as a visual basic command and I work in
C.

I tried srand(0) before filling the array but it does not help and
zobrist[0][0][0] is different in debug mode and in release mode.

Uri



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