move.py (433B)
1 # Small example of nissy Python module usage 2 # See the solve.py example for more details on how this works 3 4 import os, sys 5 6 # Assume we are eithe rin the top-level directory of the nissy-core repo, 7 # or in the python subdirectory 8 sys.path.append(os.getcwd()) 9 sys.path.append(os.getcwd() + os.path.sep + "python") 10 import nissy 11 12 cube = nissy.applymoves(nissy.solved_cube, "R' U' F"); 13 print("Cube after the moves R' U' F:") 14 print(cube)