Piece

interface Piece<B : Board<B, MG, P, C>, MG : MoveGenerator<B, MG, P, C>, P : Piece<B, MG, P, C>, C : Coordinate>

Represents chess board

Parameters

B

the type of a board.

MG

the type of a move generator.

P

the type of a piece.

C

the type of a coordinate.

Functions

equals
Link copied to clipboard
open operator fun equals(other: Any?): Boolean
getSymbol
Link copied to clipboard
abstract fun getSymbol(): String
hashCode
Link copied to clipboard
open fun hashCode(): Int
toString
Link copied to clipboard
open fun toString(): String

Properties

moveGenerators
Link copied to clipboard
abstract val moveGenerators: List<MG>
that corresponds to the piece
player
Link copied to clipboard
abstract val player: Player
the player that owns the piece

Inheritors

Piece2D
Link copied to clipboard
Piece3D
Link copied to clipboard
PieceHex
Link copied to clipboard