Enpassant

class Enpassant : SpecialRules2D<AbstractChess2D>

En Passant in standard chess

Special pawn capture that can only occur immediately after a pawn makes a move of two squares from its starting square, and it could have been captured by an enemy pawn had it advanced only one square

Constructors

Enpassant
Link copied to clipboard
fun Enpassant()

Functions

equals
Link copied to clipboard
open operator fun equals(other: Any?): Boolean
getPossibleMoves
Link copied to clipboard
open override fun getPossibleMoves(game: AbstractChess2D, player: Player, moves: MutableList<Move2D>)
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