This is a normal sbt project. You can compile code with sbt compile
, run it with sbt run
, and sbt console
will start a Scala 3 REPL, sbt test
to run tests. You can also make sbt watch file changes and rerun each time using ~
(sbt ~run
, sbt ~test
).
For more information on the sbt-dotty plugin, see the scala3-example-project.
This project implements the board and game interfaces to simulate a chess game.
Tracks the state of the board - mainly the piece placement.
- Scalatest - for Unit Testing
Methods:
lazy val isFinished: Boolean
lazy val result: Result
def move(move: Move): Either[String, Game]
Methods:
lazy val whitePieces: BoardPieces
lazy val blackPieces: BoardPieces
lazy val allPieces: BoardPieces
def sq(coords: Coords): Tile
def sq(coords: String): Option[Tile]
def move(move: Move): Board