diff options
| author | Sebastiano Tronto <sebastiano@tronto.net> | 2025-07-18 15:26:59 +0200 |
|---|---|---|
| committer | Sebastiano Tronto <sebastiano@tronto.net> | 2025-07-18 15:26:59 +0200 |
| commit | ecc5e71e2d26fbf2f0bf2298ff8ee40366bd4ac7 (patch) | |
| tree | 4967af971f287576cdf6ab9e7ef5ce77dcc35237 /python | |
| parent | de6fa5b9122758f261675aa31fe3cb6e7bab92e5 (diff) | |
| download | nissy-core-ecc5e71e2d26fbf2f0bf2298ff8ee40366bd4ac7.tar.gz nissy-core-ecc5e71e2d26fbf2f0bf2298ff8ee40366bd4ac7.zip | |
Added simpler python example
Diffstat (limited to 'python')
| -rw-r--r-- | python/examples/move.py | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/python/examples/move.py b/python/examples/move.py new file mode 100644 index 0000000..3cdd606 --- /dev/null +++ b/python/examples/move.py | |||
| @@ -0,0 +1,10 @@ | |||
| 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 | cube = nissy.applymoves(nissy.solved_cube, "R' U' F"); | ||
| 9 | print("Cube after the moves R' U' F:") | ||
| 10 | print(cube) | ||
