You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi,
I noticed that from gobroad.py to gobroad_fast.py, when we add or remove a point, we add a new line to remove empty point hash code as below before applying a stone from a player
self._hash^= zobrist.HASH_CODE[point, None]
Is this really necessary since we already code the empty board as 0.
After trying only provide black and white stone zobrist hash code for each position, it seems work fine.
Also, in the book listing 3.20, we didn’t generate zobrist code for None as well.
Could you please confirm that adding hash code for None is not necessary? or did I miss something obvious?
Haoda
The text was updated successfully, but these errors were encountered:
Hi,
I noticed that from
gobroad.py
togobroad_fast.py
, when we add or remove a point, we add a new line to remove empty point hash code as below before applying a stone from a playerself._hash^= zobrist.HASH_CODE[point, None]
Is this really necessary since we already code the empty board as 0.
After trying only provide black and white stone zobrist hash code for each position, it seems work fine.
Also, in the book listing 3.20, we didn’t generate zobrist code for None as well.
Could you please confirm that adding hash code for
None
is not necessary? or did I miss something obvious?Haoda
The text was updated successfully, but these errors were encountered: