Author: Dann Corbit
Date: 02:46:57 12/31/01
Go up one level in this thread
On December 31, 2001 at 04:36:05, Peter Rosendahl wrote: >Hi, > >I just tried to compile it with MSVC and got the same errors. I >think the problem is in data.c: > >int g_pieces[32]; > >and move.c: > >for (i=1; i<=g_num_pieces; i++) > > >When I change the definition to int g_pieces[33] everything works fine: > >Goober v0.02 >(c) 2001 Sean Mintz > >+-----------------+ >| r n b q k b n r | Goober v0.02 >| p p p p p p p p | >| - - - - | >| - - - - | Castling: KQkq >| - - - - | En Passant: - >| - - - - | Side: White >| P P P P P P P P | >| R N B Q K B N R | >+-----------------+ > >rnbqkbnr/pppppppp/8/8/8/8/PPPPPPPP/RNBQKBNR w KQkq - 0 1 > >ply time nodes nps > 1 0 20 20 k > 2 0 400 400 k > 3 10 8902 809 k > 4 110 197281 1777 k > 5 2764 4865609 1759 k > 6 70501 119060324 1688 k That was one clear problem, but I still get strange results even after that change. I suspect there is undefined behavior somewhere. It might be with those shifts of signed numbers, should they become negative.
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.