aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--.gitignore5
-rw-r--r--python/examples/move.py5
-rw-r--r--python/examples/solve.py4
-rw-r--r--python/examples/variations.py4
4 files changed, 12 insertions, 6 deletions
diff --git a/.gitignore b/.gitignore
index 81bb673..3e5bc85 100644
--- a/.gitignore
+++ b/.gitignore
@@ -9,6 +9,7 @@ utils/.DS_Store
9perf.data 9perf.data
10perf.data.old 10perf.data.old
11run 11run
12run.exe
12debugrun 13debugrun
13shell/lasttest.out 14shell/lasttest.out
14shell/lasttest.err 15shell/lasttest.err
@@ -18,7 +19,9 @@ test/.DS_Store
18test/run 19test/run
19test/run.DSYM 20test/run.DSYM
20runtest 21runtest
22runtest.exe
21runcpp 23runcpp
24runcpp.exe
22runtest.js 25runtest.js
23runtest.wasm 26runtest.wasm
24web/http/nissy_web_module.* 27web/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
4from sys import path 4import os, sys
5path.append("./") 5
6sys.path.append(os.getcwd())
6import nissy_python_module as nissy 7import nissy_python_module as nissy
7 8
8cube = nissy.applymoves(nissy.solved_cube, "R' U' F"); 9cube = 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
7from sys import path 7import sys, os
8path.append("./") 8sys.path.append(os.getcwd())
9 9
10# Import with a nicer name 10# Import with a nicer name
11import nissy_python_module as nissy 11import 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
4from sys import path 4import sys, os
5path.append("./") 5sys.path.append(os.getcwd())
6import nissy_python_module as nissy 6import nissy_python_module as nissy
7 7
8moves = "R U' Bw2 M D' x' F B(E2 F D B' Lw2 U2 U' S2 B)" 8moves = "R U' Bw2 M D' x' F B(E2 F D B' Lw2 U2 U' S2 B)"

Generated with cgit - Back to sebastiano.tronto.net