EndCondition

interface EndCondition<out G : GameType<B, MG, P, C>, B : Board<B, MG, P, C>, MG : MoveGenerator<B, MG, P, C>, P : Piece<B, MG, P, C>, C : Coordinate>

Represents end conditions of the game. Evaluated every turn to see if the game should end.

Parameters

B

the type of a board.

MG

the type of a move generator.

P

the type of a piece.

C

the type of a coordinate.

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<B, MG, P, C>>): 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

EndCondition2D
Link copied to clipboard
EndCondition3D
Link copied to clipboard
EndConditionHex
Link copied to clipboard