diff options
| author | Sebastiano Tronto <sebastiano@tronto.net> | 2025-08-08 15:17:43 +0200 |
|---|---|---|
| committer | Sebastiano Tronto <sebastiano@tronto.net> | 2025-08-08 15:25:42 +0200 |
| commit | 9c5c7af7abe9e444210ac86b903eee775fc76a84 (patch) | |
| tree | 23e716e6df423d1516a6b1e51edd4d9a8d3a7370 | |
| parent | 8af57b2ffd92daa9a40384ec8b6c49ffabc474d1 (diff) | |
| download | nissy-core-9c5c7af7abe9e444210ac86b903eee775fc76a84.tar.gz nissy-core-9c5c7af7abe9e444210ac86b903eee775fc76a84.zip | |
Small fixes
| -rw-r--r-- | .gitignore | 5 | ||||
| -rw-r--r-- | python/examples/move.py | 5 | ||||
| -rw-r--r-- | python/examples/solve.py | 4 | ||||
| -rw-r--r-- | python/examples/variations.py | 4 |
4 files changed, 12 insertions, 6 deletions
| @@ -9,6 +9,7 @@ utils/.DS_Store | |||
| 9 | perf.data | 9 | perf.data |
| 10 | perf.data.old | 10 | perf.data.old |
| 11 | run | 11 | run |
| 12 | run.exe | ||
| 12 | debugrun | 13 | debugrun |
| 13 | shell/lasttest.out | 14 | shell/lasttest.out |
| 14 | shell/lasttest.err | 15 | shell/lasttest.err |
| @@ -18,7 +19,9 @@ test/.DS_Store | |||
| 18 | test/run | 19 | test/run |
| 19 | test/run.DSYM | 20 | test/run.DSYM |
| 20 | runtest | 21 | runtest |
| 22 | runtest.exe | ||
| 21 | runcpp | 23 | runcpp |
| 24 | runcpp.exe | ||
| 22 | runtest.js | 25 | runtest.js |
| 23 | runtest.wasm | 26 | runtest.wasm |
| 24 | web/http/nissy_web_module.* | 27 | web/http/nissy_web_module.* |
| @@ -34,3 +37,5 @@ tools/results | |||
| 34 | *.o | 37 | *.o |
| 35 | *.so | 38 | *.so |
| 36 | *.s | 39 | *.s |
| 40 | *.pyd | ||
| 41 | *.dll | ||
diff --git a/python/examples/move.py b/python/examples/move.py index 3cdd606..9c7a756 100644 --- a/python/examples/move.py +++ b/python/examples/move.py | |||
| @@ -1,8 +1,9 @@ | |||
| 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 | ||
| 4 | from sys import path | 4 | import os, sys |
| 5 | path.append("./") | 5 | |
| 6 | sys.path.append(os.getcwd()) | ||
| 6 | import nissy_python_module as nissy | 7 | import nissy_python_module as nissy |
| 7 | 8 | ||
| 8 | cube = nissy.applymoves(nissy.solved_cube, "R' U' F"); | 9 | cube = nissy.applymoves(nissy.solved_cube, "R' U' F"); |
diff --git a/python/examples/solve.py b/python/examples/solve.py index a60c432..e3752fe 100644 --- a/python/examples/solve.py +++ b/python/examples/solve.py | |||
| @@ -4,8 +4,8 @@ | |||
| 4 | # folder containing nissy_python_module.so | 4 | # folder containing nissy_python_module.so |
| 5 | 5 | ||
| 6 | # Append the main folder to the python path so we can load the module | 6 | # Append the main folder to the python path so we can load the module |
| 7 | from sys import path | 7 | import sys, os |
| 8 | path.append("./") | 8 | sys.path.append(os.getcwd()) |
| 9 | 9 | ||
| 10 | # Import with a nicer name | 10 | # Import with a nicer name |
| 11 | import nissy_python_module as nissy | 11 | import nissy_python_module as nissy |
diff --git a/python/examples/variations.py b/python/examples/variations.py index 1b85d32..1a9d5bb 100644 --- a/python/examples/variations.py +++ b/python/examples/variations.py | |||
| @@ -1,8 +1,8 @@ | |||
| 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 | ||
| 4 | from sys import path | 4 | import sys, os |
| 5 | path.append("./") | 5 | sys.path.append(os.getcwd()) |
| 6 | import nissy_python_module as nissy | 6 | import nissy_python_module as nissy |
| 7 | 7 | ||
| 8 | moves = "R U' Bw2 M D' x' F B(E2 F D B' Lw2 U2 U' S2 B)" | 8 | moves = "R U' Bw2 M D' x' F B(E2 F D B' Lw2 U2 U' S2 B)" |
