Game Type Hex
interface GameTypeHex : GameType<BoardHex, MoveGeneratorHex, PieceHex, Coordinate2D>
Content copied to clipboard
Implementation of the GameType interface for a standard 2d square board.
Functions
getCurrentPlayer
Link copied to clipboard
getNextPlayer
Link copied to clipboard
getOpponentPlayers
Link copied to clipboard
getOutcome
Link copied to clipboard
getValidMoves
Link copied to clipboard
open fun getValidMoves(): List<Move<BoardHex, MoveGeneratorHex, PieceHex, Coordinate2D>>
Content copied to clipboard
abstract fun getValidMoves(player: Player): List<Move<BoardHex, MoveGeneratorHex, PieceHex, Coordinate2D>>
Content copied to clipboard
makeMove
Link copied to clipboard
abstract fun makeMove(move: Move<BoardHex, MoveGeneratorHex, PieceHex, Coordinate2D>)
Content copied to clipboard
nextPlayer
Link copied to clipboard
playerMakeMove
Link copied to clipboard
open fun playerMakeMove(move: Move<BoardHex, MoveGeneratorHex, PieceHex, Coordinate2D>)
Content copied to clipboard
prevPlayer
Link copied to clipboard
Properties
endConditions
Link copied to clipboard
abstract val endConditions: List<EndCondition<GameType<BoardHex, MoveGeneratorHex, PieceHex, Coordinate2D>, BoardHex, MoveGeneratorHex, PieceHex, Coordinate2D>>
Content copied to clipboard
moveLog
Link copied to clipboard
abstract val moveLog: MutableList<Move<BoardHex, MoveGeneratorHex, PieceHex, Coordinate2D>>
Content copied to clipboard
playerTurn
Link copied to clipboard
rules
Link copied to clipboard
abstract val rules: List<SpecialRules<GameType<BoardHex, MoveGeneratorHex, PieceHex, Coordinate2D>, BoardHex, MoveGeneratorHex, PieceHex, Coordinate2D>>
Content copied to clipboard
Inheritors
AbstractChessHex
Link copied to clipboard