A UCI chess engine written in Javascript.
Lozza was primarily created for use in web pages, but more recent versions can also be used on the command line via Node.
I use Claude lightly from version 12.0 in Lozza itself.
All you need is lozza.js from a release's Assets section.
Examples:-
All written by Claude.
If you would like to try the latest development Lozza, use ./examples/lozza.js which has the net embedded like release versions and is up to date with all commits.
Note that development and release versions can also be accessed via CDN as per the example above.
If your site uses a bundler (Vite, webpack etc.), put lozza.js in its static folder (e.g. public/) so it's copied as-is, and start it with new Worker('/lozza.js').
node lozza.js # interactive, quit to close
node lozza.js uci "position startpos" "go depth 10 quit" # execute commands then quit
node lozza.js qb q # quick bench and quit
Examples:-
node examples/node-promise.js # node equivalent of the web promise wrapper above
- https://nodejs.org - Node
- https://www.chessprogramming.org/Main_Page - Chess programming wiki
- https://computerchess.org.uk/ccrl/4040 - CCRL rating list
- https://backscattering.de/chess/uci - UCI protocol
- https://talkchess.com - Talkchess forums
- https://www.chessprogramming.org/Fruit - Early versions of Lozza used a HCE based on Fruit 2.1
- https://github.com/jw1912/bullet - bullet network trainer
- https://github.com/Disservin/fastchess - fastchess game runner
0 comments
log in to comment.