SpecialRules2D

interface SpecialRules2D<out G : GameType2D> : SpecialRules<G, Board2D, MoveGenerator2D, Piece2D, Coordinate2D>

Implementation of the SpecialRule interface for a 2d square board.

Functions

equals
Link copied to clipboard
open operator fun equals(other: Any?): Boolean
getPossibleMoves
Link copied to clipboard
abstract fun getPossibleMoves(game: G, player: Player, moves: MutableList<Move<Board2D, MoveGenerator2D, Piece2D, Coordinate2D>>)
Modifies the given moves by either adding moves which satisfy a special condition, or modifying the moves to make sure they all satisfy the condition.
hashCode
Link copied to clipboard
open fun hashCode(): Int
toString
Link copied to clipboard
open fun toString(): String

Inheritors

AbstractCastling
Link copied to clipboard
Enpassant
Link copied to clipboard
ForcedCaptureRule
Link copied to clipboard
GeneralsRule
Link copied to clipboard