gnugo-devel
[Top][All Lists]
Advanced

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

Re: [gnugo-devel] auto generated regression tests


From: Gunnar Farneback
Subject: Re: [gnugo-devel] auto generated regression tests
Date: Thu, 08 Aug 2002 21:37:46 +0200
User-agent: EMH/1.14.1 SEMI/1.14.3 (Ushinoya) FLIM/1.14.2 (Yagi-Nishiguchi) APEL/10.3 Emacs/20.7 (sparc-sun-solaris2.7) (with unibyte mode)

Dan wrote:
> After the patch, matcher_check doesn't discard the extra information
> produced by dragon_status for critical dragons. So we get:
> 
> Illegal state change:
> Games remaining: 1
> Move: 150
> Vertex: N9
> Old Status: alive
> New Status: criticalN7N7

Too bad. Apparently these lines are involved. I figure it should be
trivial to discard the two coordinates, but my perl knowledge is too
weak to know how.

        #print "parsing a line\n";
        if ($line eq "\n") {last;}      #stop at end of response
        $line =~ s/=//g;        #zap the = at the fron of the response
        $line =~ s/\n//g;       #zap newlines...
        $line =~ s/\s//g;       #zap whitespace
        my ($vertex, $new_status) = split(":", $line);

/Gunnar



reply via email to

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