[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [gnugo-devel] engine reset?
From: |
Gunnar Farneback |
Subject: |
Re: [gnugo-devel] engine reset? |
Date: |
Mon, 10 Nov 2003 01:09:47 +0100 |
User-agent: |
EMH/1.14.1 SEMI/1.14.3 (Ushinoya) FLIM/1.14.2 (Yagi-Nishiguchi) APEL/10.3 Emacs/20.7 (sparc-sun-solaris2.7) (with unibyte mode) |
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.
/Gunnar