diff options
| author | Sebastiano Tronto <sebastiano@tronto.net> | 2025-08-07 15:09:46 +0200 |
|---|---|---|
| committer | Sebastiano Tronto <sebastiano@tronto.net> | 2025-08-07 15:28:01 +0200 |
| commit | 5355de2921126e2b75e24abd57e17556e22a6ed0 (patch) | |
| tree | 0df679e152ffb2798248982ac58ff123c6859114 /python/examples | |
| parent | 57a7520545134ab95f7bb0397dcbe991c906a3e9 (diff) | |
| download | nissy-core-5355de2921126e2b75e24abd57e17556e22a6ed0.tar.gz nissy-core-5355de2921126e2b75e24abd57e17556e22a6ed0.zip | |
Added API function for solution variations
Diffstat (limited to '')
| -rw-r--r-- | python/examples/variations.py | 12 |
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 | |||
| 4 | from sys import path | ||
| 5 | path.append("./") | ||
| 6 | import nissy_python_module as nissy | ||
| 7 | |||
| 8 | moves = "R U' Bw2 M D' x' F B(E2 F D B' Lw2 U2 U' S2 B)" | ||
| 9 | |||
| 10 | print("Changing the last quarter turns of {} gives:".format(moves)) | ||
| 11 | for s in nissy.variations(moves, "lastqt"): | ||
| 12 | print(s) | ||
