Closed ghost closed 9 years ago
You can always implement a RESTful interface to Stockfish. Can't you? Once you have that (and it probably exists already in some form), it should be easy to integrate it with your web front-end.
Well, I was talking about the lichess.org
website. I know I can make my own version which adds support of Stockfish, but right now I'm too busy doing other projects.
lichess.org already uses stockfish as the AI, old blog post here http://en.lichess.org/blog/U4mtoEQAAEEAgZRL/strongest-chess-player-ever
maybe duplicate of #588 with more info http://en.lichess.org/qa/4/why-not-distribute-the-artificial-intelligence
Oh, I didn't know it already used stockfish, I guess I should go play some chess then haha :) But the link you sent says Stockfish 5, not 6. I guess that's why the highest level of Stockfish that I can play on lichess is 2400 ELO, while the latest stockfish has 3000+ ELO
Lichess actually uses this https://github.com/ddugovic/Stockfish/ -- strictly speaking it's neither Stockfish 5 nor 6.
As for the rating (note we use Glicko-2, not Elo), that depends on the depth you give per ply, thinking time, and skill level. Thinking time is key here, and we don't give a lot on lichess for performance reasons.
However, it's still good enough to play like a master, which is far above the skill of most players on the site who try to learn from playing the engine. If you want it to play at full strength, download it and give it a couple of minutes for each move (your hardware is probably not as high spec as the dedicated server afterall). It's free anyway.
Is it possible to add stockfish as an AI? Because there are already many implementations of stockfish in JS