Commits

Shlomi Fish committed 10ae038

Add the presets directory for bakers_dozen.

The scans take too long there, but it may be useful as a way
to generalise the preset generation to some non-freecell-like games.

Comments (0)

Files changed (12)

fc-solve/presets/soft-threads/meta-moves/auto-gen/bakers_dozen/data/.data.bin

Empty file added.

fc-solve/presets/soft-threads/meta-moves/auto-gen/bakers_dozen/data/.fcpro.moves.txt

+-1
+93

fc-solve/presets/soft-threads/meta-moves/auto-gen/bakers_dozen/data/.fcs.moves.txt

+-1
+93

fc-solve/presets/soft-threads/meta-moves/auto-gen/bakers_dozen/data/PLACEHOLDER

Empty file added.

fc-solve/presets/soft-threads/meta-moves/auto-gen/bakers_dozen/feed-into-process-pl.bash

+#!/bin/bash
+# Run this from ${trunk}/fc-solve/presets/soft-threads/meta-moves/auto-gen
+(
+    ruby ../optimize-seq/scripts/process-optimal_quotas-dump.rb \
+    find_optimal_quotas-300.dump) | \
+    perl -I.. ../process.pl --quotas-expr="$(
+        echo -n '('; 
+        ruby -p -e 'sub(/\n/,",");END{print "((350)x#{300-$.}),";}' ; 
+        echo -n ')'
+        )" "$@"

fc-solve/presets/soft-threads/meta-moves/auto-gen/bakers_dozen/find_optimal_quotas-300.dump

+mono ./find_opt.exe find_optimal_quotas 300 | tee find_optimal_quotas-300.dump
+Found 374 for No. 0 (921770387)
+Found 102 for No. 1 (921415561)
+Found 166 for No. 2 (917986364)
+Found 243 for No. 3 (917263365)
+Found 746 for No. 4 (910420485)
+Found 108 for No. 5 (909128488)
+Found 172 for No. 6 (906201696)
+Found 147 for No. 7 (905356638)
+Found 123 for No. 8 (904644154)
+Found 192 for No. 9 (903626587)
+Found 231 for No. 10 (902011676)
+Found 145 for No. 11 (899905793)
+Found 147 for No. 12 (899339266)
+Found 159 for No. 13 (898077281)
+Found 130 for No. 14 (895365078)
+Found 247 for No. 15 (894410740)
+Found 106 for No. 16 (893633467)
+Found 269 for No. 17 (892537367)
+Found 195 for No. 18 (891517185)
+Found 111 for No. 19 (890301252)
+Found 248 for No. 20 (888493107)
+Found 350 for No. 21 (888493107)
+Found 184 for No. 22 (887464138)
+Found 161 for No. 23 (885899838)
+Found 107 for No. 24 (884826520)
+Found 126 for No. 25 (883028000)
+Found 117 for No. 26 (880853831)
+Found 220 for No. 27 (880022373)
+Found 227 for No. 28 (879554545)
+Found 350 for No. 29 (879554545)
+Found 120 for No. 30 (878534060)
+Found 116 for No. 31 (876783289)
+Found 219 for No. 32 (874635077)
+Found 178 for No. 33 (874146516)
+Found 132 for No. 34 (872400099)
+Found 179 for No. 35 (871909773)
+Found 211 for No. 36 (869576545)
+Found 150 for No. 37 (868269870)
+Found 160 for No. 38 (867340867)
+Found 342 for No. 39 (867276363)
+Found 350 for No. 40 (867276363)
+Found 341 for No. 41 (866714915)
+Found 156 for No. 42 (865679825)
+Found 102 for No. 43 (863653796)
+Found 157 for No. 44 (862254843)
+Found 100 for No. 45 (860681713)
+gmcs -out:find_opt.exe Find-Optimized-Sequence/Find-Optimized-Sequence/find_opt.cs
+mono ./find_opt.exe continue_find_optimal_quotas 300 \
+		"/home/shlomif/progs/freecell/trunk/fc-solve/presets/soft-threads/meta-moves/auto-gen/2-cells-freecell/find_optimal_quotas-300.dump"
+mono ./find_opt.exe continue_find_optimal_quotas 300 \
+		"/home/shlomif/progs/freecell/trunk/fc-solve/presets/soft-threads/meta-moves/auto-gen/2-cells-freecell/find_optimal_quotas-300.dump"
+Found 185 for No. 46 (859120766)
+Found 350 for No. 47 (859120766)
+Found 176 for No. 48 (858112316)
+Found 107 for No. 49 (857794644)
+Found 203 for No. 50 (855798797)
+Found 113 for No. 51 (853481999)
+Found 277 for No. 52 (853053084)
+Found 215 for No. 53 (852214118)
+Found 383 for No. 54 (852045776)
+Found 349 for No. 55 (852042033)
+Found 350 for No. 56 (852042033)
+Found 149 for No. 57 (850895809)
+Found 113 for No. 58 (850060453)
+Found 168 for No. 59 (848700899)
+Found 349 for No. 60 (848662524)
+Found 111 for No. 61 (847267968)
+Found 472 for No. 62 (846729674)
+mono ./find_opt.exe continue_find_optimal_quotas 300 \
+		"/home/shlomif/progs/freecell/trunk/fc-solve/presets/soft-threads/meta-moves/auto-gen/2-cells-freecell/find_optimal_quotas-300.dump"
+Found 348 for No. 63 (846718425)
+Found 346 for No. 64 (846655059)
+Found 245 for No. 65 (845917392)
+Found 340 for No. 66 (845838941)
+Found 224 for No. 67 (845224145)
+Found 289 for No. 68 (844765536)
+Found 183 for No. 69 (843580259)
+Found 101 for No. 70 (842415789)
+Found 306 for No. 71 (841729282)
+Found 281 for No. 72 (841219822)
+Found 350 for No. 73 (841219822)
+Found 243 for No. 74 (840356020)
+Found 100 for No. 75 (838601043)
+Found 192 for No. 76 (837482365)
+Found 159 for No. 77 (836030292)
+Found 350 for No. 78 (836030292)
+Found 119 for No. 79 (835193491)
+Found 196 for No. 80 (833899986)
+Found 350 for No. 81 (833899986)
+Found 350 for No. 82 (833899986)
+Found 350 for No. 83 (833899986)
+Found 350 for No. 84 (833899986)
+Found 332 for No. 85 (833741564)
+Found 350 for No. 86 (833741564)
+Found 350 for No. 87 (833741564)
+Found 350 for No. 88 (833741564)
+Found 350 for No. 89 (833741564)
+Found 350 for No. 90 (833741564)

fc-solve/presets/soft-threads/meta-moves/auto-gen/bakers_dozen/next-id.txt

+9

fc-solve/presets/soft-threads/meta-moves/auto-gen/bakers_dozen/optimize-seq.bash

+#!/bin/bash
+export FCS_DATA_DIR="$(pwd)"
+(cd ../optimize-seq ; make more_results) | tee -a find_optimal_quotas-300.dump

fc-solve/presets/soft-threads/meta-moves/auto-gen/bakers_dozen/scans-black-list.txt

Empty file added.

fc-solve/presets/soft-threads/meta-moves/auto-gen/bakers_dozen/scans.txt

+1	--method soft-dfs -to 0123456789
+2	--method soft-dfs -to 0123467
+3	--method random-dfs -seed 2 -to 0[01][23456789]
+4	--method random-dfs -seed 1 -to 0[0123456789]
+5	--method random-dfs -seed 3 -to 0[01][23467]
+6	--method a-star
+7	--method a-star -to 0123467
+8	--method random-dfs -seed 4 -to 0[0123467]

fc-solve/presets/soft-threads/meta-moves/auto-gen/bakers_dozen/time-all.pl

+#!/usr/bin/perl
+
+use strict;
+use warnings;
+
+use IO::All;
+use List::MoreUtils qw(none);
+
+foreach my $scan (io("../scans.txt")->chomp->getlines())
+{
+    if (my ($l) = $scan =~ /\t(.*)/)
+    {
+        if (none { /\t\Q$l\E\z/ } (io("scans.txt")->chomp->getlines()))
+        {
+            system("perl time-scan.pl $l");
+        }
+    }
+}

fc-solve/presets/soft-threads/meta-moves/auto-gen/bakers_dozen/time-scan.pl

+#!/usr/bin/perl
+
+use strict;
+use warnings;
+
+local $ENV{FC_VARIANT} = "bakers_dozen";
+exec($^X, "-I../", "../time-scan.pl", @ARGV);