Package featurecat.lizzie.rules
Class Zobrist
- java.lang.Object
-
- featurecat.lizzie.rules.Zobrist
-
public class Zobrist extends Object
Used to maintain zobrist hashes for ko detection
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Zobrist
clone()
boolean
equals(Object o)
int
hashCode()
void
toggleStone(int x, int y, Stone color)
Call this method to alter the current zobrist hash for this stoneString
toString()
-
-
-
Method Detail
-
toggleStone
public void toggleStone(int x, int y, Stone color)
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)
-
-