de.java_chess.javaChess.bitboard
Interface BitBoard
- All Known Implementing Classes:
- BitBoardImpl
- public interface BitBoard
- extends Board
This interface defines the methods to be implemented by any
bitboard implementation.
_LINE_A
public static final long _LINE_A
_LINE_B
public static final long _LINE_B
_LINE_C
public static final long _LINE_C
_LINE_D
public static final long _LINE_D
_LINE_E
public static final long _LINE_E
_LINE_F
public static final long _LINE_F
_LINE_G
public static final long _LINE_G
_LINE_H
public static final long _LINE_H
_NOT_LINE_A
public static final long _NOT_LINE_A
_NOT_LINE_B
public static final long _NOT_LINE_B
_NOT_LINE_C
public static final long _NOT_LINE_C
_NOT_LINE_D
public static final long _NOT_LINE_D
_NOT_LINE_E
public static final long _NOT_LINE_E
_NOT_LINE_F
public static final long _NOT_LINE_F
_NOT_LINE_G
public static final long _NOT_LINE_G
_NOT_LINE_H
public static final long _NOT_LINE_H
_ROW_1
public static final long _ROW_1
_ROW_2
public static final long _ROW_2
_ROW_3
public static final long _ROW_3
_ROW_4
public static final long _ROW_4
_ROW_5
public static final long _ROW_5
_ROW_6
public static final long _ROW_6
_ROW_7
public static final long _ROW_7
_ROW_8
public static final long _ROW_8
_NOT_ROW_1
public static final long _NOT_ROW_1
_NOT_ROW_2
public static final long _NOT_ROW_2
_NOT_ROW_3
public static final long _NOT_ROW_3
_NOT_ROW_4
public static final long _NOT_ROW_4
_NOT_ROW_5
public static final long _NOT_ROW_5
_NOT_ROW_6
public static final long _NOT_ROW_6
_NOT_ROW_7
public static final long _NOT_ROW_7
_NOT_ROW_8
public static final long _NOT_ROW_8
getPositionOfPieces
public long getPositionOfPieces(int pieceTypeColor)
- Get the position of some pieces as a long (64 bit wide) bitmask.
- Parameters:
pieceTypeColor
- The color and type of the pieces.- Returns:
- A bitmask with the positions of these pieces.
getEmptySquares
public long getEmptySquares()
- Get the position of all empty squares.
- Returns:
- The position of all empty squares.
getAllPiecesForColor
public long getAllPiecesForColor(boolean white)
- Get all white or black pieces.
- Parameters:
white
- true, if the white pieces are requested,
false for the black pieces.