Abstract Chess2 D
abstract class AbstractChess2D(rules: List<SpecialRules2D<AbstractChess2D>>, endConditions: List<EndCondition2D<AbstractChess2D>>, startPlayer: Int) : AbstractChess<Board2D, MoveGenerator2D, Piece2D, Coordinate2D> , GameType2D
Content copied to clipboard
Represents a standard n-player game, which contains no special rules and standard end conditions.
Constructors
AbstractChess2D
Link copied to clipboard
fun AbstractChess2D(rules: List<SpecialRules2D<AbstractChess2D>> = listOf(), endConditions: List<EndCondition2D<AbstractChess2D>> = listOf(StandardEndConditions()), 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<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
Inheritors
Checkers
Link copied to clipboard
AntiChess
Link copied to clipboard
BalbosGame
Link copied to clipboard
CapablancaChess
Link copied to clipboard
Chess960
Link copied to clipboard
GrandChess
Link copied to clipboard
StandardChess
Link copied to clipboard
Janggi
Link copied to clipboard
Xiangqi
Link copied to clipboard