Trait minimax::interface::Zobrist[][src]

pub trait Zobrist {
    fn zobrist_hash(&self) -> u64;
}

An optional trait for game state types to support hashing.

Strategies that cache things by game state require this.

Required methods

fn zobrist_hash(&self) -> u64[src]

Hash of the game position.

Expected to be pre-calculated and cheaply updated with each apply or undo.

Loading content...

Implementors

Loading content...