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?
_______________________________________________
gnugo-devel mailing list
gnugo-devel@gnu.org
https://lists.gnu.org/mailman/listinfo/gnugo-devel

Reply via email to