diff options
| author | Sebastiano Tronto <sebastiano@tronto.net> | 2025-05-15 19:14:29 +0200 |
|---|---|---|
| committer | Sebastiano Tronto <sebastiano@tronto.net> | 2025-05-15 19:14:29 +0200 |
| commit | c2f3b1c9c534cadc81ebab3e718832d121cdf9cf (patch) | |
| tree | 458552dfe2e114e4d6dd9aae766855dc6351efbb /web/examples/solve.mjs | |
| parent | 97ae34da2a51d9bbc13905598ebc80633c3f80c2 (diff) | |
| download | nissy-core-c2f3b1c9c534cadc81ebab3e718832d121cdf9cf.tar.gz nissy-core-c2f3b1c9c534cadc81ebab3e718832d121cdf9cf.zip | |
WASM and JS port - work in progress
Diffstat (limited to 'web/examples/solve.mjs')
| -rw-r--r-- | web/examples/solve.mjs | 10 |
1 files changed, 10 insertions, 0 deletions
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 @@ | |||
| 1 | import Nissy from '../nissy_web_module.mjs' | ||
| 2 | |||
| 3 | const nissy = await Nissy() | ||
| 4 | |||
| 5 | nissy.setLogger(nissy._addCallbackFunction(console.log)) | ||
| 6 | |||
| 7 | var cube = new nissy.Cube() | ||
| 8 | cube.move('R\' U\' F') | ||
| 9 | |||
| 10 | nissy.solve('h48h0k4', cube, nissy.NissFlag.normal, 0, 8, 2, 99, 4, -1) | ||
