Thibault Duplessis 75bb481887 Merge pull request #834 from scala-steward/update/sbt-scalafmt-2.6.1
Update sbt-scalafmt to 2.6.1
2026-05-12 15:42:24 +02:00
2024-10-03 14:04:13 -04:00
2026-02-26 13:14:11 +01:00
2026-04-04 08:34:32 +02:00
2026-05-11 21:29:56 +00:00
2024-03-15 21:23:39 +07:00
2026-05-11 21:30:03 +00:00
2026-02-26 14:25:09 +01:00
2026-02-26 14:25:09 +01:00
2025-05-19 17:42:04 +02:00
2014-02-10 19:58:09 +01:00
2024-10-03 14:04:13 -04:00
2024-10-03 14:04:13 -04:00
2026-04-30 22:23:41 +01:00

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
S
Description
Chess API written in scala. Immutable and free of side effects.
Readme MIT 14 MiB
Languages
Scala 99.9%