[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:
parent
046aae72c8
commit
bba88bd0e6
1 changed files with 7 additions and 0 deletions
|
@ -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()
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue