Trait shakmaty::zobrist::ZobristValue [−][src]
pub trait ZobristValue: BitXorAssign + Default + Copy {
fn zobrist_for_piece(square: Square, piece: Piece) -> Self;
fn zobrist_for_white_turn() -> Self;
fn zobrist_for_castling_right(color: Color, side: CastlingSide) -> Self;
fn zobrist_for_en_passant_file(file: File) -> Self;
fn zobrist_for_remaining_checks(
color: Color,
remaining: RemainingChecks
) -> Self;
fn zobrist_for_promoted(square: Square) -> Self;
fn zobrist_for_pocket(color: Color, role: Role, pieces: u8) -> Self;
}
Expand description
Integer type that can be returned as a Zobrist hash.