| Package | Description |
|---|---|
| org.alcibiade.chess.model | |
| org.alcibiade.chess.persistence | |
| org.alcibiade.chess.rules |
| Modifier and Type | Class and Description |
|---|---|
class |
ChessBoardModel |
| Modifier and Type | Method and Description |
|---|---|
void |
ChessBoardModel.setPosition(ChessPosition position) |
| Modifier and Type | Class and Description |
|---|---|
class |
FenChessPosition
Uses a FEN-String (https://en.wikipedia.org/wiki/Forsyth%E2%80%93Edwards_Notation) and provides a ChessPosition-Object.
|
| Modifier and Type | Method and Description |
|---|---|
ChessPosition |
PositionMarshaller.convertStringToPosition(String text) |
ChessPosition |
PositionMarshallerImpl.convertStringToPosition(String text) |
ChessPosition |
FenMarshallerImpl.convertStringToPosition(String text) |
| Modifier and Type | Method and Description |
|---|---|
String |
PgnMarshaller.convertMoveToPgn(ChessPosition position,
ChessMovePath move) |
String |
PgnMarshallerImpl.convertMoveToPgn(ChessPosition position,
ChessMovePath move) |
ChessMovePath |
PgnMarshaller.convertPgnToMove(ChessPosition position,
String pgnMove) |
ChessMovePath |
PgnMarshallerImpl.convertPgnToMove(ChessPosition position,
String pgnMove) |
String |
PositionMarshaller.convertPositionToString(ChessPosition position) |
String |
PositionMarshallerImpl.convertPositionToString(ChessPosition position) |
String |
FenMarshallerImpl.convertPositionToString(ChessPosition position) |
protected ChessMovePath |
PgnMarshallerImpl.parseStandardMove(String pgnMove,
ChessPosition position) |
| Modifier and Type | Method and Description |
|---|---|
ChessPosition |
ChessRulesImpl.getInitialPosition() |
ChessPosition |
ChessRules.getInitialPosition() |
static ChessPosition |
ChessHelper.movesToPosition(ChessRules chessRules,
PgnMarshaller pgnMarshaller,
Collection<String> moves) |
| Modifier and Type | Method and Description |
|---|---|
static ChessBoardModel |
ChessHelper.applyMove(ChessRules rules,
ChessPosition position,
ChessMovePath move)
Convenient method to apply a move on a position.
|
static ChessBoardModel |
ChessHelper.applyMoveAndSwitch(ChessRules rules,
ChessPosition position,
ChessMovePath move)
Convenient method to apply a move on a position and switch the next player flag.
|
Set<ChessBoardCoord> |
ChessRulesImpl.getAttackingPieces(ChessPosition position,
ChessBoardCoord squarePosition) |
Set<ChessBoardCoord> |
ChessRules.getAttackingPieces(ChessPosition position,
ChessBoardCoord square) |
Set<ChessMovePath> |
ChessRulesImpl.getAvailableMoves(ChessPosition position) |
Set<ChessMovePath> |
ChessRules.getAvailableMoves(ChessPosition position) |
Set<ChessBoardCoord> |
ChessRulesImpl.getReachableDestinations(ChessPosition position,
ChessBoardCoord pieceCoords,
boolean excludeCheckSituations) |
Set<ChessBoardCoord> |
ChessRules.getReachableDestinations(ChessPosition position,
ChessBoardCoord pieceCoords,
boolean excludeCheckSituations) |
ChessGameStatus |
ChessRulesImpl.getStatus(ChessPosition position) |
ChessGameStatus |
ChessRules.getStatus(ChessPosition position) |
List<ChessBoardUpdate> |
ChessRulesImpl.getUpdatesForMove(ChessPosition position,
ChessMovePath path) |
List<ChessBoardUpdate> |
ChessRules.getUpdatesForMove(ChessPosition position,
ChessMovePath path) |
static boolean |
ChessHelper.isCheck(ChessRules rules,
ChessPosition position,
ChessMovePath move,
boolean swapSides)
Check if a move would lead to a Check situation.
|
static boolean |
ChessHelper.isCheckMate(ChessRules rules,
ChessPosition position,
ChessMovePath move)
Check if a move would lead to a Checkmate situation.
|
| Constructor and Description |
|---|
PieceLocator(ChessPosition position) |
PieceMoveManager(ChessPosition position) |
Copyright © 2016. All Rights Reserved.