Chess960
Represents Chess960 (Fischer random chess).
Uses the same board and pieces as classical chess, but the starting position of the pieces on the players' home ranks is randomized, following two rules:
The bishop must be placed in opposite colour
The king must be placed between rooks
Constructors
Functions
getCurrentPlayer
Link copied to clipboard
getNextPlayer
Link copied to clipboard
getOpponentPlayer
Link copied to clipboard
getOpponentPlayers
Link copied to clipboard
getOutcome
Link copied to clipboard
getPossiblePermutations
Link copied to clipboard
getValidMoves
Link copied to clipboard
open fun getValidMoves(): List<Move<Board2D, MoveGenerator2D, Piece2D, Coordinate2D>>
Content copied to clipboard
abstract fun getValidMoves(player: Player): List<Move<Board2D, MoveGenerator2D, Piece2D, Coordinate2D>>
Content copied to clipboard
makeMove
Link copied to clipboard
abstract fun makeMove(move: Move<Board2D, MoveGenerator2D, Piece2D, Coordinate2D>)
Content copied to clipboard
nextPlayer
Link copied to clipboard
playerMakeMove
Link copied to clipboard
open fun playerMakeMove(move: Move<Board2D, MoveGenerator2D, Piece2D, Coordinate2D>)
Content copied to clipboard
prevPlayer
Link copied to clipboard
Properties
endConditions
Link copied to clipboard
abstract val endConditions: List<EndCondition<GameType<Board2D, MoveGenerator2D, Piece2D, Coordinate2D>, Board2D, MoveGenerator2D, Piece2D, Coordinate2D>>
Content copied to clipboard
moveLog
Link copied to clipboard
abstract val moveLog: MutableList<Move<Board2D, MoveGenerator2D, Piece2D, Coordinate2D>>
Content copied to clipboard
playerTurn
Link copied to clipboard
rules
Link copied to clipboard
abstract val rules: List<SpecialRules<GameType<Board2D, MoveGenerator2D, Piece2D, Coordinate2D>, Board2D, MoveGenerator2D, Piece2D, Coordinate2D>>
Content copied to clipboard