chessica-0.1.0.0: A Library for Chess Game Logic
Copyright(c) Michael Szvetits 2023
LicenseBSD-3-Clause (see the file LICENSE)
Maintainertypedbyte@qualified.name
Stabilitystable
Portabilityportable
Safe HaskellSafe-Inferred
LanguageGHC2021

Chess.Player

Description

Types and functions to handle chess players.

Synopsis

Documentation

newtype Player Source #

Represents a player who participates in a chess game.

Currently, a player is only identified by the color of the controlled chess pieces. In the future, a player could have more attributes, like name, ELO rating, etc.

Constructors

Player 

Fields

Instances

Instances details
Read Player Source # 
Instance details

Defined in Chess.Player

Show Player Source # 
Instance details

Defined in Chess.Player

Eq Player Source # 
Instance details

Defined in Chess.Player

Methods

(==) :: Player -> Player -> Bool #

(/=) :: Player -> Player -> Bool #

Ord Player Source # 
Instance details

Defined in Chess.Player