lymacasm / Rubik-s-Cube

Rubiks's Cube Solver Repository
1 stars 1 forks source link

Line up the colours on the second cross #6

Open lymacasm opened 9 years ago

lymacasm commented 9 years ago

Implement a method in the Solve class in solver.py that implements the algorithm to line up the colours on the side of the pieces that make up the second cross, with the colour of the cross piece's adjacent face. The method should first check to see if the self.Moves queue is not empty. If the queue isn't empty, it should pop and return the first move in the queue. Otherwise, it should add all the moves to the queue that are necessary to perform the algorithm, and pop and return the first move of the queue, after the moves have been added.