[Computer-go] java code for Zobrist hashing

John Tromp john.tromp at gmail.com
Thu Feb 9 19:39:06 PST 2012


On Thu, Feb 9, 2012 at 8:53 PM, Ray Tayek <rtayek at ca.rr.com> wrote:
>> http://www.cwi.nl/~tromp/java/go/GoGame.java
>> has some straightforward Zobrist code.
>
> can you please explain what the expression 4+color is doing in there? (in
> find/set onwer and count score).

4+EMPTY is an empty point that's already been visited by findowner.
4+BLACK/4+WHITE are stones that have already been counted by countScore.

So, 4 is a flag for "been there, done that".

regards,
-John



More information about the Computer-go mailing list