aboutsummaryrefslogtreecommitdiff
path: root/python/examples/variations.py
diff options
context:
space:
mode:
Diffstat (limited to 'python/examples/variations.py')
-rw-r--r--python/examples/variations.py12
1 files changed, 12 insertions, 0 deletions
diff --git a/python/examples/variations.py b/python/examples/variations.py
new file mode 100644
index 0000000..1b85d32
--- /dev/null
+++ b/python/examples/variations.py
@@ -0,0 +1,12 @@
1# Small example of nissy_python_module usage
2# See the solve.py example for more details on how this works
3
4from sys import path
5path.append("./")
6import nissy_python_module as nissy
7
8moves = "R U' Bw2 M D' x' F B(E2 F D B' Lw2 U2 U' S2 B)"
9
10print("Changing the last quarter turns of {} gives:".format(moves))
11for s in nissy.variations(moves, "lastqt"):
12 print(s)

Generated with cgit - Back to sebastiano.tronto.net