EndCondition2D

interface EndCondition2D<out G : GameType2D> : EndCondition<G, Board2D, MoveGenerator2D, Piece2D, Coordinate2D>

Implementation of the EndCondition interface for a 2D square board.

Functions

equals
Link copied to clipboard
open operator fun equals(other: Any?): Boolean
evaluate
Link copied to clipboard
abstract fun evaluate(game: G, player: Player, moves: List<Move<Board2D, MoveGenerator2D, Piece2D, Coordinate2D>>): Outcome?
Evaluate the condition and return an outcome if the game should end.
hashCode
Link copied to clipboard
open fun hashCode(): Int
toString
Link copied to clipboard
open fun toString(): String

Inheritors

AntiChessEndConditions
Link copied to clipboard
Checkmate
Link copied to clipboard
FiftyMoveRuleStalemate
Link copied to clipboard
InsufficientMaterialStalemate
Link copied to clipboard
NoLegalMovesStalemate
Link copied to clipboard
StandardEndConditions
Link copied to clipboard
ThreeFoldRepetitionStalemate
Link copied to clipboard
Checkers
Link copied to clipboard