Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

a0lite-js

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:

lichess-rapid lichess-rapid lichess-rapid

Challenge Bot

Known Limitations

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.

Prerequisites

  • Bun installed on your machine
  • lc0 installed for network conversion

Installation

  1. Clone the repository:

    git clone https://github.com/sad-pixel/a0lite-js.git
    cd a0lite-js
  2. Install dependencies:

    bun install
  3. 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 nets directory.

Usage

Run the application using Bun:

bun run index.ts

This starts the application as a UCI engine.

About

Typescript Neural Network Chess Engine. Compatible with lc0 nets

Topics

Resources

Stars

Watchers

Forks

Releases

Packages

Used by

Contributors

Languages