Commits

Shlomi Fish  committed aa7e2fe

Converted some aspects of freecell.c to _push_params.

git-svn-id: file:///home/shlomif/Backup/svn-dumps/google-code/svnsync-repos/fc-solve/branches/switch-to-fcs_move_stack_push_params@1633 e7e8a897-7ba4-4ee7-b36f-f4c66519b19a

  • Participants
  • Parent commits 9c90f3c
  • Branches switch-to-fcs_move_stack_push_params, switch-to-fcs_move_stack_push_params@3680

Comments (0)

Files changed (1)

File fc-solve/source/freecell.c

     fcs_derived_states_list_t * derived_states_list
     )
 {
-    fcs_move_t temp_move;
     fc_solve_hard_thread_t * hard_thread;
     fc_solve_instance_t * instance;
     int check;
     int calc_real_depth;
     int scans_synergy;
 
-    temp_move = fc_solve_empty_move;
-
     hard_thread = soft_thread->hard_thread;
     instance = hard_thread->instance;
     calc_real_depth = instance->calc_real_depth;
      * because it indicates that the order of the stacks and freecells
      * need to be recalculated
      * */
-    fcs_move_set_type(temp_move,FCS_MOVE_TYPE_CANONIZE);
-    fcs_move_stack_push(moves, temp_move);
+    fcs_move_stack_push_params(moves,
+        FCS_MOVE_TYPE_CANONIZE,
+        0, 0, 0
+        );
 
     {
         fcs_state_extra_info_t * existing_state_val;
     int stacks_num;
 #endif
 
-    fcs_move_t temp_move;
-
     tests_define_accessors();
 
 #ifndef HARD_CODED_NUM_STACKS
 #endif
     int num_vacant_stacks;
 
-    fcs_move_t temp_move;
-
     tests_define_accessors();
 
     num_vacant_stacks = soft_thread->num_vacant_stacks;