RepositoryScala
lichess-org

lichess-org/scalachess

Chess API written in scala. Immutable and free of side effects.

792stars
235forks
6issues
2views

Featured achievements

The project's latest awards

1
TINIX TRENDING·Topic: bitboard

#1 Repository of the week

1
TINIX TRENDING·Topic: scala-3

#1 Repository of the week

1
TINIX TRENDING·Topic: bitboard-datastructure

#1 Repository of the week

Chess API written in scala for lichess.org

It is entirely functional, immutable, and free of side effects.

INSTALL

Clone scalachess

git clone https://github.com/lichess-org/scalachess

Start sbt in scalachess directory

sbt

In the sbt shell, to compile scalachess, run

compile

To run the tests

testKit / test

To run full benchmarks (takes more than 1 hour to finish):

bench / Jmh / run

Or to output a json file

bench / Jmh / run -rf json

To run quick benchmarks (results may be inaccurate):

bench / Jmh / run -i 1 -wi 1 -f1

To run longer benchmarks:

bench / Jmh / run -i 3 -wi 2 -f2

To run benchmarks for a specific class:

bench / Jmh / run -rf json .*PlayBench.*

To run scalafmt and scalafix:

sbt prepare

Install (python)

For python code, install pipenv, and run $ pipenv install from project root.

Release

  1. Bump version in build.sbt.
  2. Commit the version bump and push to master.
  3. gh release create X.Y.Z

Similar Projects

Discover other similar projects and AI models.

RepositoryScala
lichess-org/lila

♞ lichess.org: the forever free, adless and open source chess server ♞

19.1k
Dec 1, 2026
RepositoryDart
lichess-org/mobile

Lichess mobile app

2.7k
Nov 27, 2026
RepositoryTypeScript
lichess-org/chessground

Mobile/Web chess UI for lichess.org

1.4k
Oct 20, 2026
RepositoryRust
thomas-mauran/chess-tui

Play chess in any terminal. Rust TUI, Stockfish, Lichess.

1.2k
Nov 26, 2026
RepositoryPython
lichess-bot-devs/lichess-bot

A bridge between Lichess bots and chess engines

1.1k
Nov 22, 2026
RepositoryRust
lichess-org/fishnet

Distributed Stockfish analysis for lichess.org

946
Nov 21, 2026
RepositoryPython
pychess/pychess

PyChess - desktop chess client for Linux/Windows/macOS

818
Nov 23, 2026
Dataset
Lichess/standard-chess-games

[!CAUTION] This dataset is still a work in progress and some breaking changes might occur. Lichess Rated Standard Chess Games Dataset Dataset Description 6,771,826,271 standard rated games, played on lichess.org, updated monthly from the database dumps. This version of the data is meant for data analysis. If you need PGN files you can find those here. That said, once you have a subset of interest, it is trivial to convert it back to PGN as shown in the Dataset… See the full description on the dataset page: https://huggingface.co/datasets/Lichess/standard-chess-games.

♥0
98.5k
Oct 16, 2025
RepositoryPython
lichess-org/chess-openings

An aggregated data set of chess opening names

602
Nov 20, 2026