1. Shlomi Fish
  2. fc-solve

Commits

Shlomi Fish  committed e974312

Moved the add_chosen() to IterState.

git-svn-id: file:///home/shlomif/Backup/svn-dumps/google-code/svnsync-repos/fc-solve/trunk@692 e7e8a897-7ba4-4ee7-b36f-f4c66519b19a

  • Participants
  • Parent commits 63eb8bb
  • Branches master

Comments (0)

Files changed (1)

File fc-solve/presets/soft-threads/meta-moves/auto-gen/Shlomif/FCS/CalcMetaScan.pm

View file
     $state->main()->selected_scans()->[$state->scan_idx()]->mark_as_used();
 }
 
+sub add_chosen
+{
+    my $state = shift;
+
+    push @{$state->main()->chosen_scans()}, $state->get_chosen_struct();
+}
+
 package Shlomif::FCS::CalcMetaScan;
 
 use strict;
         );
 }
 
-sub add_chosen
-{
-    my $self = shift;
-    my $state = shift;
-
-    push @{$self->chosen_scans()}, $state->get_chosen_struct();
-}
 
 sub trace_wrapper
 {
 {
     my ($self, $state) = @_;
 
-    $self->add_chosen($state);
+    $state->add_chosen();
     $state->mark_as_used();
     $self->update_total_boards_solved($state);
     $self->trace_wrapper($state);