diff options
Diffstat (limited to 'web/examples')
| -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) | ||
