Uses of Class
ubc.team09.state.BoardState
Packages that use BoardState
Package
Description
Game Player
Game State Representation
User Interface
-
Uses of BoardState in ubc.team09.player
Methods in ubc.team09.player that return BoardStateModifier and TypeMethodDescriptionstatic BoardStateUtil.parseState(Map<String, Object> messageDetails) Parses the occupancy board and queen positions from aGAME_STATE_BOARDorGAME_ACTION_STARTmessage.Methods in ubc.team09.player with parameters of type BoardStateModifier and TypeMethodDescriptionstatic intUtil.parseMove(BoardState state, Map<String, Object> details) Formats the message details of a message of the typeGAME_ACTION_MOVEinto the standard integer representation. -
Uses of BoardState in ubc.team09.state
Methods in ubc.team09.state that return BoardStateModifier and TypeMethodDescriptionstatic BoardStateBoardState.initial()Creates the initial board state.Methods in ubc.team09.state with parameters of type BoardStateModifier and TypeMethodDescriptionbooleanBoardState.equals(BoardState state) Returnstrueif and only if the given state has the same occupancy board and queen positions as this object.voidState.impose(BoardState newState) Updates this board's occupancy and queen positions to match the given board.static booleanMove.isLegal(BoardState board, int move) Returnstrueif and only if a move is legal from a given board state.Constructors in ubc.team09.state with parameters of type BoardStateModifierConstructorDescriptionBoardState(BoardState prev, int move) Creates a new state by applying the given move to an old state. -
Uses of BoardState in ubc.team09.view
Methods in ubc.team09.view with parameters of type BoardStateModifier and TypeMethodDescriptionstatic voidDisplay.printGameBoard(BoardState state, int lastMove, String label, String blackName, String whiteName, LinkedList<String> messages) Prints a board state to the console.