public class ChessHelper extends Object
| Modifier and Type | Method and Description |
|---|---|
static ChessBoardModel |
applyMove(ChessRules rules,
ChessPosition position,
ChessMovePath move) |
static boolean |
isCheck(ChessRules rules,
ChessPosition position,
ChessMovePath move,
boolean swapSides) |
public static boolean isCheck(ChessRules rules, ChessPosition position, ChessMovePath move, boolean swapSides) throws IllegalMoveException
IllegalMoveExceptionpublic static ChessBoardModel applyMove(ChessRules rules, ChessPosition position, ChessMovePath move) throws IllegalMoveException
IllegalMoveExceptionCopyright © 2014. All Rights Reserved.