Abstract Chess3 D
abstract class AbstractChess3D(rules: List<SpecialRules3D<AbstractChess3D>>, endConditions: List<EndCondition3D<AbstractChess3D>>, startPlayer: Int) : AbstractChess<Board3D, MoveGenerator3D, Piece3D, Coordinate3D> , GameType3D
Content copied to clipboard
Represents a standard n-player game, which contains no special rules and standard end conditions.
Constructors
AbstractChess3D
Link copied to clipboard
fun AbstractChess3D(rules: List<SpecialRules3D<AbstractChess3D>> = listOf(), endConditions: List<EndCondition3D<AbstractChess3D>> = listOf(EndConditions3DChess()), startPlayer: Int = 0)
Content copied to clipboard
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
getValidMoves
Link copied to clipboard
open fun getValidMoves(): List<Move<Board3D, MoveGenerator3D, Piece3D, Coordinate3D>>
Content copied to clipboard
abstract fun getValidMoves(player: Player): List<Move<Board3D, MoveGenerator3D, Piece3D, Coordinate3D>>
Content copied to clipboard
makeMove
Link copied to clipboard
abstract fun makeMove(move: Move<Board3D, MoveGenerator3D, Piece3D, Coordinate3D>)
Content copied to clipboard
nextPlayer
Link copied to clipboard
playerMakeMove
Link copied to clipboard
open fun playerMakeMove(move: Move<Board3D, MoveGenerator3D, Piece3D, Coordinate3D>)
Content copied to clipboard
prevPlayer
Link copied to clipboard
Properties
endConditions
Link copied to clipboard
abstract val endConditions: List<EndCondition<GameType<Board3D, MoveGenerator3D, Piece3D, Coordinate3D>, Board3D, MoveGenerator3D, Piece3D, Coordinate3D>>
Content copied to clipboard
moveLog
Link copied to clipboard
abstract val moveLog: MutableList<Move<Board3D, MoveGenerator3D, Piece3D, Coordinate3D>>
Content copied to clipboard
playerTurn
Link copied to clipboard
rules
Link copied to clipboard
abstract val rules: List<SpecialRules<GameType<Board3D, MoveGenerator3D, Piece3D, Coordinate3D>, Board3D, MoveGenerator3D, Piece3D, Coordinate3D>>
Content copied to clipboard
Inheritors
RaumschachChess
Link copied to clipboard