[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [gnugo-devel] Opponent follow-up value and group connection
From: |
Paul Pogonyshev |
Subject: |
Re: [gnugo-devel] Opponent follow-up value and group connection |
Date: |
Wed, 14 May 2003 00:51:09 -0400 |
User-agent: |
KMail/1.5.9 |
SP LEE wrote:
> This is a more careful treatment for larger dragons. Please ignore my
> previous patch. The fix here is like "forget the shape factor if either
> attacking or defending a dragon of more than 20 points is involved." This
> kind of play can be seen even in professional games.
a good idea, just only hardcoded values are something better to avoid,
as Evan mentioned.
> @@ -2636,7 +2636,9 @@
> if (move[pos].secondary_value != 0.0)
> TRACE(" %1m: %f - secondary\n", pos, 0.05 *
> move[pos].secondary_value);
>
> - if (move[pos].numpos_shape + move[pos].numneg_shape > 0) {
> + if ((move[pos].numpos_shape + move[pos].numneg_shape > 0)
> + && (move[pos].territorial_value < 20)){
> + /* for attack/defend large dragon, ignore shape factor */
> /* shape_factor has already been computed. */
> float old_value = tot_value;
> tot_value *= shape_factor;
and two things about the patch's lookout:
- if your mail client wraps lines, better send patches attached
(the same if it converts tabs to spaces)
- not a problem so far, but if you are going to work with gnu go,
please use the coding conventions we do. this patch should look
like
- if (move[pos].numpos_shape + move[pos].numneg_shape > 0) {
+ /* For attack/defend of large dragons, ignore shape factor. */
+ if (move[pos].numpos_shape + move[pos].numneg_shape > 0.0
+ && move[pos].territorial_value < 20.0) {
/* shape_factor has already been computed. */
otherwise you force Gunnar or me or someone else to fix this sooner
or later.
Paul
- [gnugo-devel] Opponent follow-up value and group connection, SP LEE, 2003/05/10
- Re: [gnugo-devel] Opponent follow-up value and group connection, SP LEE, 2003/05/11
- Re: [gnugo-devel] Opponent follow-up value and group connection,
Paul Pogonyshev <=
- Re: [gnugo-devel] Opponent follow-up value and group connection, Heikki Levanto, 2003/05/14
- Re: [gnugo-devel] Opponent follow-up value and group connection, SP LEE, 2003/05/15
- [gnugo-devel] How can I trace "current stack" in owl analysis?, SP LEE, 2003/05/16
- Re: [gnugo-devel] How can I trace "current stack" in owl analysis?, bump, 2003/05/16