Computer Chess Club Archives


Search

Terms

Messages

Subject: Re: problems compiling

Author: Peter Rosendahl

Date: 01:36:05 12/31/01

Go up one level in this thread


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

Best regards,
p.r.




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.