Commits

Shlomi Fish  committed a615fc1

Removed some leftover (and redundant) FCS_MOVE_TYPE_CANONIZE from freecell.c.

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

  • Participants
  • Parent commits 0f31a33

Comments (0)

Files changed (1)

File fc-solve/source/freecell.c

 
                     fcs_flip_top_card(stack_idx);
 
-                    /* The last move needs to be FCS_MOVE_TYPE_CANONIZE
-                     * because it indicates that the internal order of the
-                     * stacks
-                     * and freecells may have changed. */
-                    fcs_move_set_type(temp_move,FCS_MOVE_TYPE_CANONIZE);
-                    fcs_move_stack_push(moves, temp_move);
-
                     sfs_check_state_end()
                     break;
                 }
 
                     fcs_move_stack_push(moves, temp_move);
 
-                    fcs_move_set_type(temp_move,FCS_MOVE_TYPE_CANONIZE);
-                    fcs_move_stack_push(moves, temp_move);
-
                     sfs_check_state_end();
                 }
             }
 
                 fcs_move_stack_push(moves, temp_move);
 
-                fcs_move_set_type(temp_move,FCS_MOVE_TYPE_CANONIZE);
-                fcs_move_stack_push(moves, temp_move);
-
                 sfs_check_state_end()
             }
         }
 
                             fcs_move_stack_push(moves, temp_move);
 
-                            fcs_move_set_type(temp_move,FCS_MOVE_TYPE_CANONIZE);
-                            fcs_move_stack_push(moves, temp_move);
-
                             sfs_check_state_end()
                         }
                     }
 
                 fcs_move_stack_push(moves, temp_move);
 
-                fcs_move_set_type(temp_move,FCS_MOVE_TYPE_CANONIZE);
-                fcs_move_stack_push(moves, temp_move);
-
                 sfs_check_state_end()
             }
         }
 
                         fcs_move_stack_push(moves, temp_move);
 
-                        fcs_move_set_type(temp_move,FCS_MOVE_TYPE_CANONIZE);
-                        fcs_move_stack_push(moves, temp_move);
-
                         sfs_check_state_end()
                     }
                 }
 
             fcs_move_stack_push(moves, temp_move);
 
-            fcs_move_set_type(temp_move,FCS_MOVE_TYPE_CANONIZE);
-            fcs_move_stack_push(moves, temp_move);
-
             sfs_check_state_end()
         }
     }