Commits

Shlomi Fish  committed 9c90f3c

Converted in tests.h.

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

  • Participants
  • Parent commits 95491e9
  • 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/tests.h

            )                                                       \
         {                                                          \
             fcs_col_flip_card(col, cards_num-1);                   \
-            fcs_move_set_type(temp_move, FCS_MOVE_TYPE_FLIP_CARD); \
-            fcs_move_set_src_stack(temp_move, stack_idx);              \
-                                                                   \
-            fcs_move_stack_push(moves, temp_move);                 \
+            fcs_move_stack_push_params(moves,                      \
+                FCS_MOVE_TYPE_FLIP_CARD, stack_idx, 0, 0           \
+            );                                                     \
         }                                                          \
     }                                                              \
 }
 {
     int i;
     fcs_cards_column_t new_src_col, new_dest_col;
-    fcs_move_t temp_move;
 
     new_src_col = fcs_state_get_col(*new_state_ptr, source_idx);
     new_dest_col = fcs_state_get_col(*new_state_ptr, dest_idx);
         fcs_col_pop_top(new_src_col);
     }
 
-    fcs_move_set_type(temp_move, FCS_MOVE_TYPE_STACK_TO_STACK);
-    fcs_move_set_src_stack(temp_move, source_idx);
-    fcs_move_set_dest_stack(temp_move, dest_idx);
-    fcs_move_set_num_cards_in_seq(temp_move, end-start+1);
-
-    fcs_move_stack_push(moves, temp_move);
+    fcs_move_stack_push_params(moves, 
+        FCS_MOVE_TYPE_STACK_TO_STACK,
+        /* src= */   source_idx,
+        /* dest= */  dest_idx,
+        /* num_cards= */end-start+1
+    );
 }
 
 /*