go movetime 5000
p4wn_loader.js:626: Uncaught TypeError: Cannot read property 'findmove' of undefined
go depth 2
p4wn_loader.js:626: Uncaught TypeError: Cannot read property 'findmove' of undefined
go infinite
p4wn_loader.js:626: Uncaught TypeError: Cannot read property 'findmove' of undefined
uci
id name p4wn, AKA 5k chess
id author Douglas Bagnall, ported to JSUCI by Edmund Moshammer
uciok
isready
readyok
position fen rnbqkbnr/pppppppp/8/8/8/8/PPPPPPPP/RNBQKBNR w KQkq - 0 1
engine.js:31380: Uncaught TypeError: Cannot read property 'board' of undefined
go depth 3
p4wn_loader.js:626: Uncaught TypeError: Cannot read property 'findmove' of undefined
go movetime 5000
p4wn_loader.js:626: Uncaught TypeError: Cannot read property 'findmove' of undefined
go depth 2
p4wn_loader.js:626: Uncaught TypeError: Cannot read property 'findmove' of undefined
go infinite
p4wn_loader.js:626: Uncaught TypeError: Cannot read property 'findmove' of undefined
uci
id name p4wn, AKA 5k chess
id author Douglas Bagnall, ported to JSUCI by Edmund Moshammer
uciok
isready
readyok
position fen rnbqkbnr/pppppppp/8/8/8/8/PPPPPPPP/RNBQKBNR w KQkq - 0 1
engine.js:31380: Uncaught TypeError: Cannot read property 'board' of undefined
go depth 3
p4wn_loader.js:626: Uncaught TypeError: Cannot read property 'findmove' of undefined
Fantastic. I've been playing around with a Javascript engine recently and being able to use a standard UI would be great. I actually started off with similar intentions to your interface but got seduced by the engine.
Lozza uses the JSON web worker interface to do an analysis of N ply with a timeout option.
phenri wrote:I just tried to launch stockfish.js and apparently it is not so universal as that.
Interesting. I invested some time trying to find out why it is not running, but without success. This autogenerated source is not very debug friendly. It might be that one of the node.js malloc functions gets blocked by V8, but I am not certain.
Fantastic. I've been playing around with a Javascript engine recently and being able to use a standard UI would be great. I actually started off with similar intentions to your interface but got seduced by the engine.
Lozza uses the JSON web worker interface to do an analysis of N ply with a timeout option.
Hey Colin,
I just head a look at your source. It looks very well organized. Connecting it to uci should be straight forward. It is missing an algebraic move parser and would have to change the way of output, but the rest looks suited perfectly. Please let me know if you encounter any dificulties.
All the best
Edmund
Edmund wrote:
I just head a look at your source. It looks very well organized. Connecting it to uci should be straight forward. It is missing an algebraic move parser and would have to change the way of output, but the rest looks suited perfectly. Please let me know if you encounter any dificulties.
All the best
Edmund
Great, thanks for checking it out and the tips. I'll look up the UCI protocol - never done anything with it. Looking forward to getting this going in my Hiarcs UI.
Woo! I have Lozza working in Arena (well in principle anyway).
I was going to spawn a sub-worker with Lozza in it on UCI GO, so I could easily kill it on UCI STOP, but V8 doesn't seem to like a worker starting another one.
NB: Can't currently use Hiarcs UI because it says your exe is 'not a valid engine' - I'll post in the Hiarcs forum to find out what it required for 'validity'.