Commits

Shlomi Fish committed b748d98

Added the update_total_boards_solved().

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

Comments (0)

Files changed (1)

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

     push @{$state->main()->chosen_scans()}, $state->get_chosen_struct();
 }
 
+sub update_total_boards_solved
+{
+    my $state = shift;
+    $state->main()->add('total_boards_solved', $state->num_solved());
+}
+
 package Shlomif::FCS::CalcMetaScan;
 
 use strict;
     );
 }
 
-sub update_total_boards_solved
-{
-    my ($self, $state) = @_;
-    $self->add('total_boards_solved', $state->num_solved());
-}
 
 sub update_using_iter_state
 {
 
     $state->add_chosen();
     $state->mark_as_used();
-    $self->update_total_boards_solved($state);
+    $state->update_total_boards_solved();
     $self->trace_wrapper($state);
 }