Computer Chess Club Archives




Subject: Re: Hash Collisions

Author: Robert Hyatt

Date: 07:25:45 02/24/99

Go up one level in this thread

On February 24, 1999 at 05:34:01, Dave Gomboc wrote:

>On February 23, 1999 at 11:09:40, Robert Hyatt wrote:
>>On February 23, 1999 at 04:58:30, Dave Gomboc wrote:
>>>On February 22, 1999 at 11:14:14, Robert Hyatt wrote:
>>>>I'll try to figure out a way to post my values here if you are interested.
>>>>64 * 12 isn't horribly big, but when you display them as 64 bit values, they
>>>>are big. The main issue is how to initialize such an array in a portable
>>>>way...  IE (BITBOARD ran[12][64] = {{1,2,3},{4,5,6}};  The numbers 1,2,3
>>>>default to 'int' which is bad.  I don't know what to do for all compilers
>>>>(IE 123ULL or (BITBOARD) 123)
>>>I don't know of a portable way to do this either.  My Rush Hour
>>>( software has "#if defined"s like crazy for all of the annoying
>>>cases, e.g.
>>Cute bit of trivia.  Look on the outside of the Rush Hour box, and check
>>out the names.  One of them dates back to Cray Blitz.  But I won't spoil
>>the mystery just yet.
>Mystery?  On my box, there is only one name!  The box says that Nob Yoshigahara
>is the inventor of the game.  Perhaps there is a different box in Canada than in
>the U.S.?  But I doubt it... there's no French on this box, there is just a
>sticker with French text slapped on top of it, as if it was an afterthought.

could have changed.  I have a 'pre-production' version sent to me by Harry
Nelson, one of the great 'puzzle wizards' on the West Coast.  He wanted me to
help him with a program to take positions and solve them the shortest way
possible so they could test 'add on' positions for later release.  I never had

>>>/* MSVC 6.0 */
>>>typedef unsigned __int64 bitboard;
>>>const bitboard outside_edge = 0xFF818181818181FF;
>>>/* SGI MIPSpro 7.2.1 (with -64 switch) */
>>>typedef unsigned long bitboard;
>>>const bitboard outside_edge = 0xFF818181818181FF;
>>>/* g++ 2.7.2 */
>>>typedef unsigned long long bitboard;
>>>const bitboard outside_edge = 0xFF818181818181FFll;
>>>Of the three, I like SGI's setup the best.
>>>Dave Gomboc
>BTW, if someone has a better way to do the above, please mention it. :-)
>Dave Gomboc

This page took 0.01 seconds to execute

Last modified: Thu, 07 Jul 11 08:48:38 -0700

Current Computer Chess Club Forums at Talkchess. This site by Sean Mintz.