Class MoveHelper

java.lang.Object
io.github.wolfraam.chessgame.move.MoveHelper
All Implemented Interfaces:
Serializable

public class MoveHelper extends Object implements Serializable
Computes different things for chess moves.
See Also:
  • Constructor Details

    • MoveHelper

      public MoveHelper(Board board)
  • Method Details

    • getKingState

      public KingState getKingState(Side kingSide, boolean checkOnMate)
    • getKingStateAfterMove

      public KingState getKingStateAfterMove(Side kingSide, Move move, boolean checkOnMate)
    • getLegalMoves

      public Set<Move> getLegalMoves()
    • getLegalMoves

      public Set<Move> getLegalMoves(Piece piece, Square targetSquare)
    • getLegalMoves

      public Set<Move> getLegalMoves(Square from)
    • getSquaresAttackingKing

      public Set<Square> getSquaresAttackingKing(Side kingSide)
    • hasLegalMoves

      public boolean hasLegalMoves()
    • isLegalMove

      public boolean isLegalMove(Move move)