]> git.sesse.net Git - remoteglot-book/blobdiff - opening-stats.pl
Switch value format to protobuf. Slightly smaller, easier to deal with extensions...
[remoteglot-book] / opening-stats.pl
index f8dd56d502def8bc835b870c507cf9f52afa189e..1c17f50af253431e7baeb3e38163a5ed20bbc15a 100755 (executable)
@@ -5,13 +5,10 @@ use CGI;
 use JSON::XS;
 use lib '..';
 use Position;
-use ECO;
-
-#ECO::unpersist();
 
 my $cgi = CGI->new;
 my $fen = $ARGV[0];
 my $pos = Position->from_fen($fen);
 my $hex = unpack('H*', $pos->bitpacked_fen);
-system("./binlookup", "./open.mtbl", $hex);
+system("./binlookup", "./open.mtbl", "40", $hex);