public class PositionStateRecord extends Object
Constructor and Description |
---|
PositionStateRecord(byte whiteCastlingRights,
byte blackCastlingRights,
byte enPassantRights,
byte fiftyMoveRuleClock,
long checkers) |
Modifier and Type | Method and Description |
---|---|
byte |
getBlackCastlingRights() |
long |
getCheckers() |
byte |
getEnPassantRights() |
byte |
getFiftyMoveRuleClock() |
byte |
getWhiteCastlingRights() |
public PositionStateRecord(byte whiteCastlingRights, byte blackCastlingRights, byte enPassantRights, byte fiftyMoveRuleClock, long checkers)
whiteCastlingRights
- The castling rights of white.blackCastlingRights
- The castling rights of black.enPassantRights
- The en passant rights of the position.fiftyMoveRuleClock
- The fifty-move counter state.checkers
- A bitboard for all pieces checking the side to move's king.public byte getWhiteCastlingRights()
public byte getBlackCastlingRights()
public byte getEnPassantRights()
public byte getFiftyMoveRuleClock()
public long getCheckers()
Copyright © 2020. All rights reserved.