Le Dimanche 9 Avril 2006 04:21, Hiroshi Yamashita a écrit :
> Hi,
>
> GnuGo played suicide move as below in 9x9.
> I found this gnugo 3.7.4, but 3.7.9 also played same move.
> I tested VC++6.0 and gcc on linux.
>
> Regards,
> Hiroshi Yamashita
>
Thank you for reporting this bug, and by the way
this interesting game against Aya :)
It happens only during end-game. In attachement a simple
patch to workaround/fix this.
Regards,
Alain
--- ../gnugo-3.7.9/engine/filllib.c 2006-01-27 16:49:22.000000000 +0100
+++ ./engine/filllib.c 2006-04-09 19:59:59.000000000 +0200
@@ -201,7 +201,7 @@
*move = pos;
return 1;
}
- else if (defense_point != NO_MOVE) {
+ else if (defense_point != NO_MOVE && is_legal(defense_point,color)) {
/* Safety not confirmed because the move at (pos) would set
* up a double threat. (defense_point) is assumed to defend
* against this threat.
_______________________________________________
gnugo-devel mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/gnugo-devel