Piece2D

interface Piece2D : Piece<Board2D, MoveGenerator2D, Piece2D, Coordinate2D>

Implementation of the Piece interface for pieces on a standard 2d square board

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<MoveGenerator2D>
that corresponds to the piece
player
Link copied to clipboard
abstract val player: Player
the player that owns the piece

Inheritors

Checkers
Link copied to clipboard
Checkers
Link copied to clipboard
BalbosGame
Link copied to clipboard
AntiChessKing
Link copied to clipboard
Bishop
Link copied to clipboard
BlackPawn
Link copied to clipboard
Cardinal
Link copied to clipboard
ChessPawn
Link copied to clipboard
King
Link copied to clipboard
Knight
Link copied to clipboard
Marshal
Link copied to clipboard
Queen
Link copied to clipboard
Rook
Link copied to clipboard
WhitePawn
Link copied to clipboard
Advisor
Link copied to clipboard
Cannon
Link copied to clipboard
Chariot
Link copied to clipboard
Elephant
Link copied to clipboard
General
Link copied to clipboard
Horse
Link copied to clipboard
JanggiSoldier
Link copied to clipboard
XiangqiAdvisor
Link copied to clipboard
XiangqiCannon
Link copied to clipboard
XiangqiChariot
Link copied to clipboard
XiangqiElephant
Link copied to clipboard
XiangqiGeneral
Link copied to clipboard
XiangqiHorse
Link copied to clipboard
XiangqiSoldier
Link copied to clipboard