aboutsummaryrefslogtreecommitdiff
path: root/python/examples
diff options
context:
space:
mode:
authorSebastiano Tronto <sebastiano@tronto.net>2025-12-14 15:12:36 +0100
committerSebastiano Tronto <sebastiano@tronto.net>2025-12-14 16:09:31 +0100
commitbcd52547af58b15868e24f3904e307548d1fd505 (patch)
treecda0a871f65575bb15fb4536c7b103c13caf433e /python/examples
parent21fdf9697ddfab0a9c082a91ae0a79b1b574774c (diff)
downloadnissy-core-bcd52547af58b15868e24f3904e307548d1fd505.tar.gz
nissy-core-bcd52547af58b15868e24f3904e307548d1fd505.zip
Cleanup, update documentation, fix examples
Diffstat (limited to 'python/examples')
-rw-r--r--python/examples/solve.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/python/examples/solve.py b/python/examples/solve.py
index 75e7914..5660b6b 100644
--- a/python/examples/solve.py
+++ b/python/examples/solve.py
@@ -12,14 +12,14 @@ sys.path.append(os.getcwd() + os.path.sep + "python")
12import nissy 12import nissy
13 13
14# Choose the solver you prefer 14# Choose the solver you prefer
15solver = "h48h0k4" 15solver = "h48h3"
16 16
17# Load the pruning table from file, generate it if needed 17# Load the pruning table from file, generate it if needed
18datapath = "tables" + os.path.sep + solver 18datapath = "tables" + os.path.sep + solver
19if os.path.exists(datapath): 19if os.path.exists(datapath):
20 data = bytearray(open(datapath, "rb").read()) 20 data = bytearray(open(datapath, "rb").read())
21else: 21else:
22 data = nissy.gendata("h48h0k4") 22 data = nissy.gendata(solver)
23 print("Generated data will NOT be persisted") 23 print("Generated data will NOT be persisted")
24 24
25# Get a scrambled cube 25# Get a scrambled cube

Generated with cgit - Back to sebastiano.tronto.net