gnugo-devel
[Top][All Lists]
Advanced

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

[gnugo-devel] maybe bug in board.c


From: Heroboy
Subject: [gnugo-devel] maybe bug in board.c
Date: Thu, 20 Dec 2018 10:22:23 +0800

Please see the function "komaster_trymove"
ko_move = is_ko(pos, color, &kpos);
If ko_move==0, then kpos is uninitilized.  And then
some
set_new_kom_pos(kpos);
maybe use the uninitilized kpos.

------
I am using gnugo code to calc go influence data.
the code maybe look like:

init_gnugo(DEFAULT_MEMORY, 0);
list_mc_patterns();
while(1)
{
      //recv board data from client
   clear_board();
   //use add_stone() to set the stone.
   silent_examine_position(EXAMINE_DRAGONS_WITHOUT_OWL);
      //send data to client
}

Can gnugo reuse like this?

reply via email to

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