Skip to content

zbyju/chesso

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

36 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Edit in Eraser

Chesso - A scala chess library

Usage

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.

Features

This project implements the board and game interfaces to simulate a chess game.

Board

Tracks the state of the board - mainly the piece placement.

Dependecies

  • Scalatest - for Unit Testing

Documentation

Game

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

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages