java.lang.Object
app.chess.san.SAN
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionstatic void
applyMoves
(Chess chess, String moveSequence) Convert moves from a single SAN sequence and apply them on the gamestatic void
applyMoves
(Chess chess, List<String> moves) Convert moves from SAN and apply them on the game alternating the playerdecodeMove
(GameView<ChessMove, ChessPiece> chess, int player, String move) static String
encodeMove
(GameView<ChessMove, ChessPiece> chess, ChessMove move) splitMoveSequence
(String moveSequence) Split move sequence into individual moves
-
Method Details
-
encodeMove
-
decodeMove
-
applyMoves
Convert moves from SAN and apply them on the game alternating the player -
applyMoves
Convert moves from a single SAN sequence and apply them on the game -
splitMoveSequence
Split move sequence into individual movese.g. 1. e4 e5 2. Nf3 Nc6 -> [e4, e5, Nf3, Nf6]
-