aboutsummaryrefslogtreecommitdiff
path: root/python/examples/move.py
diff options
context:
space:
mode:
authorSebastiano Tronto <sebastiano@tronto.net>2025-08-12 09:36:36 +0100
committerSebastiano Tronto <sebastiano@tronto.net>2025-08-12 09:36:36 +0100
commit50bd8f0f568120e554d416f474cc72247d0b3240 (patch)
tree236b8ebed5af17f8220981deffd69b97f0d08fe7 /python/examples/move.py
parent315d0f118f3d5ec2578249182f7b0eebf99d2943 (diff)
parentb36ed11e322152ff9ab813af78a08c35b42d5f94 (diff)
downloadnissy-core-50bd8f0f568120e554d416f474cc72247d0b3240.tar.gz
nissy-core-50bd8f0f568120e554d416f474cc72247d0b3240.zip
Merge branch 'master' of https://github.com/sebastianotronto/nissy-core into windows
Diffstat (limited to 'python/examples/move.py')
-rw-r--r--python/examples/move.py7
1 files changed, 5 insertions, 2 deletions
diff --git a/python/examples/move.py b/python/examples/move.py
index 9c7a756..0ed879b 100644
--- a/python/examples/move.py
+++ b/python/examples/move.py
@@ -1,10 +1,13 @@
1# Small example of nissy_python_module usage 1# Small example of nissy Python module usage
2# See the solve.py example for more details on how this works 2# See the solve.py example for more details on how this works
3 3
4import os, sys 4import os, sys
5 5
6# Assume we are eithe rin the top-level directory of the nissy-core repo,
7# or in the python subdirectory
6sys.path.append(os.getcwd()) 8sys.path.append(os.getcwd())
7import nissy_python_module as nissy 9sys.path.append(os.getcwd() + os.path.sep + "python")
10import nissy
8 11
9cube = nissy.applymoves(nissy.solved_cube, "R' U' F"); 12cube = nissy.applymoves(nissy.solved_cube, "R' U' F");
10print("Cube after the moves R' U' F:") 13print("Cube after the moves R' U' F:")

Generated with cgit - Back to sebastiano.tronto.net