diff options
| author | Scott Gasch <[email protected]> | 2016-06-01 18:58:58 -0700 |
|---|---|---|
| committer | Scott Gasch <[email protected]> | 2016-06-01 18:58:58 -0700 |
| commit | 3fd43cd5fcb22bb65bf2a92a25d95d801b11c9e0 (patch) | |
| tree | 9b6443235d16ba17f094a1a1c7ae53d2bcb9267b /src/suite_picker.pl | |
Initial checkin for typhoon chess engine.
Diffstat (limited to 'src/suite_picker.pl')
| -rwxr-xr-x | src/suite_picker.pl | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/src/suite_picker.pl b/src/suite_picker.pl new file mode 100755 index 0000000..9433679 --- /dev/null +++ b/src/suite_picker.pl @@ -0,0 +1,25 @@ +#!/usr/bin/perl + +$max = 0; +while(<>) +{ + if ($_ =~ /^Problem \"([^\"]+)\" solved in/) + { + $k = $1; + $k =~ s/[^\.]*\.//; + $solved[$k]++; + $max = $solved[$k] if ($solved[$k] > $max); + } +} + +for ($k = 0; $k < 880; $k++) +{ + if ($solved[$k] >= ($max - 3)) + { + print "drop ecm.$k\n"; + } + else + { + printf "keep ecm.$k (%u solution(s))\n", $solved[$k]; + } +} |
