[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: [pbmserv-dev] Question about MakeMove()



I figured out the problem. As I thought, stupid. My ReadBaord function was
returning 0, even though there was no error. This was causing an attempt to
rebuild the game, I guess.

I don't have a (Board) section, and everything seems to be working OK now.

> -----Original Message-----
> From: owner-pbmserv-dev@gamerz.net
> [mailto:owner-pbmserv-dev@gamerz.net]On Behalf Of Richard Rognlie
> Sent: Tuesday, March 27, 2001 11:27 AM
> To: pbmserv-dev@gamerz.net
> Subject: Re: [pbmserv-dev] Question about MakeMove()
> 
> 
> If there is a moves array, but no board, the ReadBoard code 
> will attempt to
> reconstruct the board based on the moves before it returns.
> 
> Does your new game not have a
> (board
> )
> 
> section?
> 
> On Tue, Mar 27, 2001 at 10:49:09AM -0500, Bob Lafleur wrote:
> > I'm working on a new game and I've got what seems to be a 
> wierd situation
> > with MakeMove(). It appears that it is being called, even 
> for commands that
> > don't have moves, such as SHOW and SHOWAS, and it is being 
> called with the
> > moves read in from the board file. It also appears that 
> this is happening
> > before the rest of the board file has been read in. I have 
> verified that
> > this does NOT happen in my Scramble code, so I am wondering 
> why it is
> > happening in my new game. My new game is totally new code, 
> not based on
> > Scramble. It is probably some really stupid mistake (I make 
> a lot of those!)
> > but offhand I just can't see what it might be; any ideas 
> what might be
> > causing this behavior? Thanks.
> > 
> >    - Bob
> > 
> > 
> > To unsubscribe, send a message to esquire@gamerz.net with
> > 	unsubscribe pbmserv-dev
> > as the BODY of the message.  The SUBJECT is ignored.
> > 
> 
> -- 
>  /  \__  | Richard Rognlie / Sendmail Samurai / Gamerz.NET Lackey
>  \__/  \ | http://www.gamerz.net/rrognlie/    <rrognlie@gamerz.net>
>  /  \__/ |    
>  \__/    | UNIX does not have a philosophy.  It has an attitude.
> 
> 
> To unsubscribe, send a message to esquire@gamerz.net with
> 	unsubscribe pbmserv-dev
> as the BODY of the message.  The SUBJECT is ignored.
> 
>