Package featurecat.lizzie.rules
Class Zobrist
java.lang.Object
featurecat.lizzie.rules.Zobrist
Used to maintain zobrist hashes for ko detection
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
Zobrist
public Zobrist() -
Zobrist
public Zobrist(long zhash)
-
-
Method Details
-
clone
-
init
public static void init() -
toggleStone
Call this method to alter the current zobrist hash for this stone- Parameters:
x
- x coordinate -- must be validy
- y coordinate -- must be validcolor
- color of the stone to alter (for adding or removing a stone color)
-
equals
-
hashCode
public int hashCode() -
toString
-