aboutsummaryrefslogtreecommitdiff
path: root/python/example.py
diff options
context:
space:
mode:
authorSebastiano Tronto <sebastiano@tronto.net>2024-12-14 11:59:22 +0100
committerSebastiano Tronto <sebastiano@tronto.net>2024-12-14 11:59:22 +0100
commit4a88a686d5e08404080ed6954b70c0db252aa220 (patch)
treec1fb469d5a2a68c8e4651ad7837d3dd6fe2ff93e /python/example.py
parent9ac266c76f39620d8343e46ca41cb09d1534384c (diff)
downloadnissy-core-4a88a686d5e08404080ed6954b70c0db252aa220.tar.gz
nissy-core-4a88a686d5e08404080ed6954b70c0db252aa220.zip
Allow choosing number of threads when calling solve()
Diffstat (limited to '')
-rw-r--r--python/example.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/python/example.py b/python/example.py
index fdea2d4..b939183 100644
--- a/python/example.py
+++ b/python/example.py
@@ -23,7 +23,7 @@ data = bytearray(open("tables/" + solver, "rb").read())
23cube = nissy.applymoves(nissy.solved_cube, "U F R2"); 23cube = nissy.applymoves(nissy.solved_cube, "U F R2");
24 24
25# Solve! 25# Solve!
26solutions = nissy.solve(cube, solver, nissy.nissflag_normal, 0, 9, 3, -1, data) 26solutions = nissy.solve(cube, solver, nissy.nissflag_normal, 0, 9, 3, -1, 4, data)
27 27
28# Print the solutions, one per line 28# Print the solutions, one per line
29print("Found ", len(solutions), " solutions:") 29print("Found ", len(solutions), " solutions:")

Generated with cgit - Back to sebastiano.tronto.net