aboutsummaryrefslogtreecommitdiff
path: root/python/examples/move.py
blob: 0ed879bf42048a7167cc57b95264c37d7c8dea6c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
# Small example of nissy Python module usage
# See the solve.py example for more details on how this works

import os, sys

# Assume we are eithe rin the top-level directory of the nissy-core repo,
# or in the python subdirectory
sys.path.append(os.getcwd())
sys.path.append(os.getcwd() + os.path.sep + "python")
import nissy

cube = nissy.applymoves(nissy.solved_cube, "R' U' F");
print("Cube after the moves R' U' F:")
print(cube)

Generated with cgit - Back to sebastiano.tronto.net