gnugo-devel
[Top][All Lists]
Advanced

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

Re: [gnugo-devel] Patch: GTP:worm_origins


From: Gunnar Farneback
Subject: Re: [gnugo-devel] Patch: GTP:worm_origins
Date: Sun, 27 Jan 2002 18:24:58 +0100
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)

Heikki wrote:
> I need to iterate over all the worms (and later, dragons). Of course I could
> filter the output of worm_stones, but I figured it was easier to add it in
> gtp than to do my own filtering. Might even be handy for someone else
> playing with the engine...

The output of worm stones looks like below:

| loadsgf games/connection3.sgf
| = black
| 
| worm_stones
| = B13 D13 A12 B12 C12 D12 B11 
| E13 E12 C11 D11 E11 F11 G11 H11 J11 K11 L11 C10 L10 C9 L9 M9 N9 C8 L8 A7 B7 
C7 L7 C6 L6 C5 L5 C4 L4 C3 D3 E3 F3 G3 H3 J3 K3 L3 J2 J1 
| H13 
| M13 L12 M12 N12 M11 M10 N10 
| A9 
| N7 
| A6 B6 B5 A4 B4 B3 A2 B2 
| M3 K2 L2 M2 N2 K1 M1 
| G1 
| 

This gives one worm per line, starting with each origin. Thus the
filtering to only get the origins is quite trivial. It seems to me
that the worm_origins command overlaps a little too much to be
worthwhile.

/Gunnar



reply via email to

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