From c2f3b1c9c534cadc81ebab3e718832d121cdf9cf Mon Sep 17 00:00:00 2001 From: Sebastiano Tronto Date: Thu, 15 May 2025 19:14:29 +0200 Subject: WASM and JS port - work in progress --- web/examples/solve.mjs | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 web/examples/solve.mjs (limited to 'web/examples/solve.mjs') diff --git a/web/examples/solve.mjs b/web/examples/solve.mjs new file mode 100644 index 0000000..c7bce71 --- /dev/null +++ b/web/examples/solve.mjs @@ -0,0 +1,10 @@ +import Nissy from '../nissy_web_module.mjs' + +const nissy = await Nissy() + +nissy.setLogger(nissy._addCallbackFunction(console.log)) + +var cube = new nissy.Cube() +cube.move('R\' U\' F') + +nissy.solve('h48h0k4', cube, nissy.NissFlag.normal, 0, 8, 2, 99, 4, -1) -- cgit v1.3