lichess.org
Donate

Load UCI Engine Instead of Computer Analysis

#10 Agreed, any JS engine is bound to be obsolete since JS is a terrible language for application development.

#5 What about JavaFX? (Admittedly, I can't find any other chess site which uses JavaFX so there isn't a good example to copy.) It offers all the same security guarantees as Java Web Start (that binaries are securely downloaded) and it's capable of manipulating the DOM. However, it has the same risk and challenge any client-side software has: in order to run on the client machine, it's necessary to download and run the browser plugin.
I dunno if this idea would work but I'm sharing it anyway ...

When stockfish runs and analyzes a game on (lichess server), it generates a hash table of moves and its evaluations. Perhaps we can use this table to instantly lookup a position and display the engine analysis as someone moves pieces on the analysis board.

There would be almost no increase in server load but the analysis will have slightly lower quality. The hash tables could be purged in a day or so.
#1 I had the same idea after watching John's video, it made me realize that this functionality is really missing in lichess.

#11 JavaFX applet is just a java applet and it has the same problems.

How about a standalone java application(can also be made available via java webstart) that will communicate with the engine via UCI and with the javascript client via websocket?

I'm a java developer and I don't mind implementing it if thibault will agree to add it to lichess.

P.S.
This is my first post so I would like to use this opportunity to thank thibault for making this awesome site, so thanks thibault, you are awesome!
(I wish I knew what people were talking about here - my mechanical engineering degrees supplied me with only Computer Science 101)
Is it a technical reason lichess can't communicate with a chess-engine-server running on the local computer through http?

Ie. the lichess webpage would make xhr requests against localhost. I'm not sure but there might be some browser security restrictions? (EDIT: seems it should be possible: http://enable-cors.org/)

If not this seem like a decent solution[1]. I assume there's plenty of http uci chess servers around, and the lichess js probably already use uci?

[1] a bit complex for some users to set up maybe?

This topic has been archived and can no longer be replied to.