Advertisement
Jakube

Calc Cycle

Apr 4th, 2020
323
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.19 KB | None | 0 0
  1. def calc_cycle_num_from_algorithm(algorithm):
  2.     cube = Cube()
  3.     count = 0
  4.     while count == 0 or not cube.solved():
  5.         count += 1
  6.         cube.apply_algorithm(algorithm)
  7.     return count
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement