Abstract Castling
abstract class AbstractCastling<C : AbstractChess2D>(castleWidth: Int, p1CanCastleLeft: Boolean, p1CanCastleRight: Boolean, p2CanCastleLeft: Boolean, p2CanCastleRight: Boolean) : SpecialRules2D<C>
Content copied to clipboard
General Castling Logic
Constructors
AbstractCastling
Link copied to clipboard
Functions
getPossibleMoves
Link copied to clipboard
open override fun getPossibleMoves(game: C, player: Player, moves: MutableList<Move2D>)
Content copied to clipboard
Inheritors
CapablancaCastling
Link copied to clipboard
Chess960Castling
Link copied to clipboard
StandardCastling
Link copied to clipboard