1. Shlomi Fish
  2. fc-solve

Commits

Shlomi Fish  committed f210927

Refactoring.

  • Participants
  • Parent commits 97b75f9
  • Branches master

Comments (0)

Files changed (2)

File fc-solve/presets/soft-threads/meta-moves/auto-gen/MyInput.pm

View file
 
 use base 'Shlomif::FCS::CalcMetaScan::Base';
 
-use Shlomif::FCS::CalcMetaScan::Structs;
+use AI::Pathfinding::OptimizeMultiple::Scan;
 
 use PDL;
 use PDL::IO::FastRaw;
         chomp($line);
         my ($id, $cmd_line) = split(/\t/, $line);
         push @scans,
-            Shlomif::FCS::CalcMetaScan::Structs::Scan->new(
+            AI::Pathfinding::OptimizeMultiple::Scan->new(
                 id => $id,
                 cmd_line => $cmd_line
             );

File fc-solve/presets/soft-threads/meta-moves/auto-gen/process-for-shortness.pl

View file
 
 use List::Util qw(min);
 
-use Shlomif::FCS::CalcMetaScan;
-
 use Text::Table;
 
 use MyInput;
 
 binmode STDOUT, ':utf8';
 
+my $num_scans_limit = -1;
+
 GetOptions(
     "l!" => \$with_len,
+    'max-scans=i' => \$num_scans_limit,
 );
 
 my ($scan_id, $board_idx) = @ARGV;
 SELECTED_SCANS:
 foreach my $scan (@{$input_obj->selected_scans()})
 {
-    # TODO : Remove and refactor later.
-    if ($scan_index == 5)
+    if ($scan_index == $num_scans_limit)
     {
         last SELECTED_SCANS;
     }