Zobrist class

Used for hashing and storing board states. https://en.wikipedia.org/wiki/Zobrist_hashing

Constructors

Zobrist(BuiltVariant variant, int seed, {List<List<int>>? table})

Properties

castling int
no setter
dimX int
no setter
dimY int
no setter
hashCode int
The hash code for this object.
no setterinherited
hashes Map<int, int>
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
seed int
final
table List<List<int>>
getter/setter pair
turn int
no setter

Methods

compute(BishopState state) int
Computes the hash of state.
decrementHash(int hash) int
Decrements the count for hash.
hashHits(int hash) int
Returns the number of hits for hash.
incrementHash(int hash) int
Increments the count for hash.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Methods

buildTable(BuiltVariant variant, int seed) List<List<int>>
Builds a Zobrist lookup table given variant and seed.

Constants

meta → const int