aboutsummaryrefslogtreecommitdiff
path: root/web/examples
diff options
context:
space:
mode:
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