Graham Banks wrote:Hi Colin,
can I download the engine itself for use in an external GUI in Windows?
Graham.
Hi Graham,
As a Javascript engine, that is in fact it - the source is interpreted in real time in web browsers or other applications that embed Javascript as a scripting language, like node.js.
To that end Edmund Moshammer embedded Google's amazing Javascript engine (called V8) in a C program called jsUCI which reads stdin and passes it to anything running in the V8 engine - and similarly passes anything from the engine back to stdout.
Thus effectively creating an entity that can be used with standard chess UIs. The Lozza source is a parameter to jsUCI, which fires it up in V8, which interprets it. Or to be more precise in the case of V8 actually compiles it in real time, runs it and optimises it in real time!
So to run Lozza in a std UI the sequence is: download jsUCI, download the Lozza source into the same folder, then fire it up with "jsuci lozza.js".
jsuci.exe -
http://sourceforge.net/projects/jsuci/files/
lozza.js -
http://op12no2.me/toys/lozza/lozza.js
This is a post on my blog on the same topic:-
http://op12no2.me/posts/1818
Note that jsuci exe will not be exactly that name depending on version.
From my personal perspective it would be lovely to see Javascript engines in rating lists but I would also fully understand if testers rejected them. It's an interesting decision...
My longer term plan is to write my own C program that overtly embeds Lozza, making the fact that it is Javascript opaque to the outside world. The engine would just an .exe in that form - but - exactly the same as the script that is being interpreted in web browsers.
Thanks for your interest...
