gnugo-devel
[Top][All Lists]
Advanced

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

Re: [gnugo-devel] another semeai patch


From: Inge Wallin
Subject: Re: [gnugo-devel] another semeai patch
Date: Thu, 15 Jan 2004 00:12:31 +0100 (CET)

On Wed, 14 Jan 2004, SP Lee wrote:

> Index: owl.c
> ===================================================================
> RCS file: /cvsroot/gnugo/gnugo/engine/owl.c,v
> retrieving revision 1.187
> diff -u -r1.187 owl.c
> --- owl.c       7 Jan 2004 10:00:20 -0000       1.187
> +++ owl.c       14 Jan 2004 22:15:10 -0000
> @@ -1255,6 +1255,9 @@
>    int k;
> 
>    for (k = 0; k < MAX_MOVES-1; k++) {
> +  /* Eating lunch decreases own liberties during semeai */
> +    if (owl_moves[k].name == "eat lunch")
> +      continue;

This looks wrong.  You can't compare a string in this way.  Either you 
should use strcmp() or (preferrably) use another way entirely to catch 
this move.

>      move = owl_moves[k].pos;
>      if (move == NO_MOVE)
>        break;
> 

        -Inge

-----------------------------------------------------------------------------
Inge Wallin               | Thus spake the master programmer:               |
                          |      "After three days without programming,     |
address@hidden       |       life becomes meaningless."                |
                          | Geoffrey James: The Tao of Programming.         |





reply via email to

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