3 # test-game: Run testcases within a single game
5 # Usage: test-game FILENAME
7 # Examine a game record and run testcases for all moves described
8 # in the "game comment".
12 sed -ne '/GC\[/,/\]/{ s/.*GC\[//; s/\].*//; p; }' <"$sgf" |
13 while read move class desc
; do
16 echo "Move $moven ($movec)"
17 tools
/sgf2gtp.pl
-g -n $
((moven-1
)) <"$sgf" | .
/pachi
-d 4 -t =20000