[position] Export Position::zobrist_hash()

Pass-through call to self.board.zobrist_hash() to return the hash value of the
current board position.
This commit is contained in:
Eryn Wells 2025-06-07 08:50:20 -07:00
parent 046aae72c8
commit bba88bd0e6

View file

@ -197,6 +197,13 @@ impl Position {
} }
} }
impl Position {
#[must_use]
pub fn zobrist_hash(&self) -> Option<u64> {
self.board.zobrist_hash()
}
}
impl Position { impl Position {
pub fn display(&self) -> DiagramFormatter { pub fn display(&self) -> DiagramFormatter {
self.board.display() self.board.display()