[Top][All Lists]

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

[gnugo-devel] minimal matcher_check revision

From: Arend Bayer
Subject: [gnugo-devel] minimal matcher_check revision
Date: Fri, 23 Aug 2002 15:54:39 +0200 (CEST)

This makes matcher_check produce a better error output when used with
--loadsgf but without --movenum.
Evan, if this is fine with you, I would add this to CVS.


Index: interface/gtp_examples/matcher_check
RCS file: /cvsroot/gnugo/gnugo/interface/gtp_examples/matcher_check,v
retrieving revision 1.6
diff -u -r1.6 matcher_check
--- interface/gtp_examples/matcher_check        23 Aug 2002 07:13:40 -0000      
+++ interface/gtp_examples/matcher_check        23 Aug 2002 13:50:18 -0000
@@ -26,10 +26,9 @@
 # matcher_check info:
-# plays one gtp program against itself, and watches for bad
-# status transitions.
+# Plays one gtp program against itself or lets it analzye a saved .sgf-file,
+# and watches for bad status transitions.
-# FIXME: allow analysis of sgf files
 # FIXME: if the vertex by which a dragon is named ever changes,
 # the hash table used will consider it new.  therefore, if the
 # vertex changes at the same time an illegal state change occurs,
@@ -134,6 +133,12 @@
 if ($loadfile)
     #we need to analyze an sgf file
+    if (not defined $movecount) {
+       print "Error: When analyzing an sgf file with --loadsgf <filename>, you 
also need to
+specify the number of moves to check with --movecount <n>.
+       exit;
+    }
     $pidp = open2($prog_out, $prog_in, $program);
     print "program pid: $pidp\n" if $verbose;

reply via email to

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