4

Preferably written in javascript, but the language really doesn't matter.

6

4 Answers 4

3

I'm not aware of any "small" chess engine written in JavaScript, but there's a "small" engine written in C. Micro-max has about 1900 to 2000 rating, depends on the rating list and testing condition.

http://www.computerchess.org.uk/ccrl/4040/cgi/engine_details.cgi?print=Details+%28text%29&eng=Micro-Max%204.8

Note that it's not the smallest engine, but the engine that is even smaller than Micro-max plays awful chess (dropping pieces) and even walk into check (illegal move).

2

Garbochess-JS is written in javascript. It's about 75KB, 2400 or so lines of code I believe. The version written in C++ was rated around 2575 on CCRL.

https://github.com/glinscott/Garbochess-JS

Lozza-js is rated around 2300, and is about twice the size of Garbochess-JS.

Toledo Nanochess and P4wn are probably less than 2000 elo, and Stockfish-js is considerably larger than Garbochess and Lozza.

1
  • And stofish js is not really JS but compiled WASM
    – Zibri
    Mar 14, 2022 at 23:23
-1

t seems like garbo was a little stronger maybe 2670 but anywhoo.

https://jtiscione.github.io/chessboard3js/play.html is a nice online interface for playing p4wn -weak lozzo -strong!! and stockfish -godlike

http://op12no2.me/toys/lozza/play.htm

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.