WhitePawn

open class WhitePawn(player: Player, startingRow: Int, promotionRegion: RowRegion, pawnPromotions: List<Piece2D>) : ChessPawn, Piece2D

Represents a white pawn

Constructors

WhitePawn
Link copied to clipboard
fun WhitePawn(player: Player, startingRow: Int, promotionRow: Int, pawnPromotions: List<Piece2D>)
WhitePawn
Link copied to clipboard
fun WhitePawn(player: Player, startingRow: Int, promotionRegion: RowRegion, pawnPromotions: List<Piece2D>)

Functions

equals
Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
getSymbol
Link copied to clipboard
abstract fun getSymbol(): String
hashCode
Link copied to clipboard
open override 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
pawnPromotions
Link copied to clipboard
val pawnPromotions: List<Piece2D>
player
Link copied to clipboard
open override val player: Player
the player that owns the piece
promotionRegion
Link copied to clipboard
val promotionRegion: RowRegion
startingRow
Link copied to clipboard
val startingRow: Int

Inheritors

AntiChessWhitePawn
Link copied to clipboard
CapablancaWhitePawn
Link copied to clipboard
GrandWhitePawn
Link copied to clipboard
StandardWhitePawn
Link copied to clipboard