gnugo-devel
[Top][All Lists]
Advanced

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

Re: [gnugo-devel] engine reset?


From: Kenneth Owen Stanley
Subject: Re: [gnugo-devel] engine reset?
Date: Sun, 9 Nov 2003 18:28:46 -0600 (CST)

> 
> Kenneth Stanley wrote:
> > In other words, it looks like calling init_gnugo multiple
> > times results in some kind of memory leak.  I have a
> > feeling the function was not meant for this kind of use.
> 
> Correct.
> 
> > But if calling gnugo_clear_board isn't sufficient to
> > ensure consistent play, and init_gnugo can't be
> > used multiple times, what can be used?  Is there
> > some way to reinitialize so that play is consistent?
> 
> You're probably looking for reset_engine(). If that is not sufficient,
> try to look in interface/play_gtp.c to see what is done in GTP mode by
> commands like clear_board, play, and genmove.
> 

Yes, that's a sensible suggestion; I should have mentioned 
that reset_engine() doesn't do the trick either.  Calling 
reset_engine() between games still results in inconsistent play.  I will 
look around for something else but it would be great if anyone
can offer suggestions.

ken




reply via email to

[Prev in Thread] Current Thread [Next in Thread]