stockfish.js
stockfish.js copied to clipboard
how to export stockfish object for any RequireJS compatible environment
how to export stockfish object for any RequireJS compatible environment
I don't know enough about RequireJS to know if it's possible.
If you're using WASM, make sure to include all of the necessary files: stockfish.js
and stockfish.wasm
in the same directory.
If you just want to use plain JS, then all you need is stockfish.asm.js
.
when i use stockfish.js in Cocos Creator like:
var Stockfish = require('./stockfish.js');
i got exception: Stockfish is not a function
Does require('./stockfish.asm.js')
do anything different?
Does
require('./stockfish.asm.js')
do anything different?
the same exception : Stockfish is not a function