insanichess library

Insanichess game logic.

This library is meant to be used both from client and from server. It provides all the necessary game logic regarding the Insanichess game.

Classes

BlackBishop
Represent a black bishop.
BlackKing
Represent a black king.
BlackKnight
Represent a black knight.
BlackPawn
Represent a black pawn.
BlackPiece
Abstraction that extends Piece by setting the color to PieceColor.black.
BlackQueen
Represent a black queen.
BlackRook
Represent a black rook.
Board
Representation of playing board.
Game
Representation of the game.
GameHistory
Holds data about moves played.
Move
Represents a move played by a single player.
Piece
Piece represents a game piece. It contains information of what type this piece is (e.g. pawn, knight, etc.) and what color it is.
PlayedMove
Square
Represents a square on the chessboard.
WhiteBishop
Represent a white bishop.
WhiteKing
Represent a white king.
WhiteKnight
Represent a white knight.
WhitePawn
Represent a white pawn.
WhitePiece
Abstraction that extends Piece by setting the color to PieceColor.white.
WhiteQueen
Represent a white queen.
WhiteRook
Represent a white rook.

Enums

GameStatus
Status of the game.
PieceColor
Represents a color of the Piece.
PieceType
Represents a type of the Piece.

Typedefs

Position = List<List<Piece?>>
Definition of type representing a position on board.