Scala MIT

scalachess

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

L

lichess-org

Dernière activité 23 sept. 2026
lichess-org/scalachess

784

étoiles

230

forks

9

issues ouvertes

bitboardbitboard-datastructurechessfunctional-programminglichessscala-3

Ce README est souvent en anglais.

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

Projets similaires

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

Scalachessfree-softwarefunctional-programming
Llichess-org
18,8 k étoiles2,8 k

A TypeScript chess library for chess move generation/validation, piece placement/movement, and check/checkmate/draw detection

TypeScriptchess
Jjhlywa
4,4 k étoiles987

A bridge between Lichess bots and chess engines

Pythonapibotbot-account
Llichess-bot-devs
1,1 k étoiles580