SpecialRules

interface SpecialRules<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 special rules that can occur under certain conditions

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
getPossibleMoves
Link copied to clipboard
abstract fun getPossibleMoves(game: G, player: Player, moves: MutableList<Move<B, MG, P, C>>)
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

SpecialRules2D
Link copied to clipboard
SpecialRules3D
Link copied to clipboard
SpecialRulesHex
Link copied to clipboard