aboutsummaryrefslogtreecommitdiff
path: root/web/examples/solve.mjs
diff options
context:
space:
mode:
authorSebastiano Tronto <sebastiano@tronto.net>2025-05-23 17:06:02 +0200
committerSebastiano Tronto <sebastiano@tronto.net>2025-05-23 17:06:02 +0200
commitecb04c6b7fbf5d06c2fdce5128e83575cac2bd21 (patch)
tree3946a99938c10b61f7822c715771c3529400cebc /web/examples/solve.mjs
parentc6a77f30f64be73a5e55e06336975f2ecfbb2324 (diff)
downloadnissy-core-ecb04c6b7fbf5d06c2fdce5128e83575cac2bd21.tar.gz
nissy-core-ecb04c6b7fbf5d06c2fdce5128e83575cac2bd21.zip
Web version (work in progress)
Diffstat (limited to '')
-rw-r--r--web/examples/solve.mjs12
1 files changed, 7 insertions, 5 deletions
diff --git a/web/examples/solve.mjs b/web/examples/solve.mjs
index c7bce71..8ff59c0 100644
--- a/web/examples/solve.mjs
+++ b/web/examples/solve.mjs
@@ -1,10 +1,12 @@
1import Nissy from '../nissy_web_module.mjs' 1import Nissy from '../nissy_web_module.mjs'
2 2
3const nissy = await Nissy() 3const nissy = await Nissy();
4 4
5nissy.setLogger(nissy._addCallbackFunction(console.log)) 5var log = process.stdout.write.bind(process.stdout);
6//var log = console.log
7nissy.setLogger(nissy._addCallbackFunction(log))
6 8
7var cube = new nissy.Cube() 9var cube = new nissy.Cube();
8cube.move('R\' U\' F') 10cube.move('R\' U\' F');
9 11
10nissy.solve('h48h0k4', cube, nissy.NissFlag.normal, 0, 8, 2, 99, 4, -1) 12nissy.solve('h48h0k4', cube, nissy.NissFlag.normal, 0, 8, 2, 99, 4, -1);

Generated with cgit - Back to sebastiano.tronto.net