From 5355de2921126e2b75e24abd57e17556e22a6ed0 Mon Sep 17 00:00:00 2001 From: Sebastiano Tronto Date: Thu, 7 Aug 2025 15:09:46 +0200 Subject: Added API function for solution variations --- python/examples/variations.py | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 python/examples/variations.py (limited to 'python/examples') 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 @@ +# Small example of nissy_python_module usage +# See the solve.py example for more details on how this works + +from sys import path +path.append("./") +import nissy_python_module as nissy + +moves = "R U' Bw2 M D' x' F B(E2 F D B' Lw2 U2 U' S2 B)" + +print("Changing the last quarter turns of {} gives:".format(moves)) +for s in nissy.variations(moves, "lastqt"): + print(s) -- cgit v1.3