python_data_scien/poc2/poc2_mini_proj_4.py
def solve_row0_tile(self, target_col):
        """
        Solve the tile in row zero at the specified column
        Updates puzzle and returns a move string
        """
        empyt_str = ''
        target_row = 1
        target_col -= 1
        result_str = ''
        result_str += 'ld'
        self.update_puzzle(result_str)
        if self.is_move_over(target_row,target_col,2):
            # move_str = 'r'*(self.get_width()-2)
            # result_str += move_str
            # self.update_puzzle(move_str)
            return result_str
        else:
            result_str += self.move_to_same_col_p2(empyt_str,target_row,target_col,2)
            if self.is_prepered_pos(target_row,target_col,2):
                result_str += self.finish_last_step(target_row,target_col,2)
                return result_str
            else:
                result_str += self.move_to_same_row_p2(empyt_str,target_row,target_col,2)
                result_str += self.finish_last_step(target_row,target_col,2)
                return result_str

        Solve the tile in row zero at the specified column
        Updates puzzle and returns a move string
        
Solve the tile in row zero at the specified column
Updates puzzle and returns a move string
Solve the tile in row zero at the specified column Updates puzzle and returns a move string
def solve_row0_tile(self, target_col):
        empyt_str = ''
        target_row = 1
        target_col -= 1
        result_str = ''
        result_str += 'ld'
        self.update_puzzle(result_str)
        if self.is_move_over(target_row,target_col,2):
            return result_str
        else:
            result_str += self.move_to_same_col_p2(empyt_str,target_row,target_col,2)
            if self.is_prepered_pos(target_row,target_col,2):
                result_str += self.finish_last_step(target_row,target_col,2)
                return result_str
            else:
                result_str += self.move_to_same_row_p2(empyt_str,target_row,target_col,2)
                result_str += self.finish_last_step(target_row,target_col,2)
                return result_str
def solve_row0_tile ( self , target_col ) : empyt_str = '' target_row = 1 target_col -= 1 result_str = '' result_str += 'ld' self . update_puzzle ( result_str ) if self . is_move_over ( target_row , target_col , 2 ) : return result_str else : result_str += self . move_to_same_col_p2 ( empyt_str , target_row , target_col , 2 ) if self . is_prepered_pos ( target_row , target_col , 2 ) : result_str += self . finish_last_step ( target_row , target_col , 2 ) return result_str else : result_str += self . move_to_same_row_p2 ( empyt_str , target_row , target_col , 2 ) result_str += self . finish_last_step ( target_row , target_col , 2 ) return result_str
Solve the tile in row zero at the specified column
Updates puzzle and returns a move string
Solve the tile in row zero at the specified column Updates puzzle and returns a move string
"""
        Solve the tile in row zero at the specified column
        Updates puzzle and returns a move string
        """ # move_str = 'r'*(self.get_width()-2)
 # result_str += move_str
 # self.update_puzzle(move_str)

self
target_col