a0lite-js is a TypeScript port of the original dkappe/a0lite project. It is designed to work with lc0 networks that have been converted to the ONNX format.
You can play against the bot on Lichess as A0lite-js. Current ratings:
The engine currently has some weaknesses:
- May miss obvious checkmates
- Can fall into threefold repetition in winning positions
- Basic time management system
These are being actively worked on for future improvements.
- Bun installed on your machine
- lc0 installed for network conversion
-
Clone the repository:
git clone https://github.com/sad-pixel/a0lite-js.git cd a0lite-js -
Install dependencies:
bun install
-
Convert an LC0 network to ONNX format:
lc0 leela2onnx --input=<path-to-network-file> --output=<path-to-output-onnx-file>
Place the resulting ONNX model in the
netsdirectory.
Run the application using Bun:
bun run index.tsThis starts the application as a UCI engine.