[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[gnugo-devel] inconsistent owl results
From: |
Arend Bayer |
Subject: |
[gnugo-devel] inconsistent owl results |
Date: |
Sun, 15 Sep 2002 17:37:13 +0200 (CEST) |
This solves nngs2:310. If we get an inconsistent owl result (i.e. owl_attack
succeeds, and owl_defend claims "alive as it stands"), we try to resolve that
by calling owl_does_defend with the attack move as suggested defense.
Arend
[P.S.: Nando, I hope this does not clash with your patch in progress.]
Index: engine/dragon.c
===================================================================
RCS file: /cvsroot/gnugo/gnugo/engine/dragon.c,v
retrieving revision 1.74
diff -u -r1.74 dragon.c
--- engine/dragon.c 10 Sep 2002 15:05:42 -0000 1.74
+++ engine/dragon.c 15 Sep 2002 15:35:38 -0000
@@ -410,6 +410,15 @@
DEBUG(DEBUG_OWL_PERFORMANCE,
"Inconsistent owl attack and defense results for %1m.\n",
str);
+ /* Let's see whether the attacking move might be the right
+ * defense:
+ */
+ dcode = owl_does_defend(dragon[str].owl_attack_point, str);
+ if (dcode != 0) {
+ dragon[str].owl_defense_point
+ = dragon[str].owl_attack_point;
+ dragon[str].owl_defense_code = dcode;
+ }
}
}
}
- [gnugo-devel] inconsistent owl results,
Arend Bayer <=