Re: [Computer-go] java code for Zobrist hashing

2012-02-09 Thread John Tromp
On Thu, Feb 9, 2012 at 8:53 PM, Ray Tayek 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

Re: [Computer-go] java code for Zobrist hashing

2012-02-09 Thread Ray Tayek
At 02:41 PM 2/9/2012, you 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). thanks --- co-chair http://ocjug.org/ ___

Re: [Computer-go] java code for Zobrist hashing

2012-02-09 Thread Ray Tayek
At 02:28 PM 2/9/2012, you wrote: Zobrist hashing is very simple - ... not the sort of thing you'd normally bother publishing i was thinking of putting this into my go program (which just plays by hand). I guess (although a quick google found this: http://burtleburtle.net/bob/hash/doobs.html).

Re: [Computer-go] java code for Zobrist hashing

2012-02-09 Thread Ray Tayek
At 02:41 PM 2/9/2012, you wrote: http://www.cwi.nl/~tromp/java/go/GoGame.java has some straightforward Zobrist code. ... great! thanks --- co-chair http://ocjug.org/ ___ Computer-go mailing list Computer-go@dvandva.org http://dvandva.org/cgi-bin/m

Re: [Computer-go] java code for Zobrist hashing

2012-02-09 Thread John Tromp
http://www.cwi.nl/~tromp/java/go/GoGame.java has some straightforward Zobrist code. -regards, -John On Thu, Feb 9, 2012 at 5:28 PM, Robert Finking wrote: > Zobrist hashing is very simple - it requires only an array filled with > random data and XOR - not the sort of thing you'd normally bother

Re: [Computer-go] java code for Zobrist hashing

2012-02-09 Thread Robert Finking
Zobrist hashing is very simple - it requires only an array filled with random data and XOR - not the sort of thing you'd normally bother publishing I guess (although a quick google found this: http://burtleburtle.net/bob/hash/doobs.html). To use it in a game, the only other thing you need is a

[Computer-go] java code for Zobrist hashing

2012-02-09 Thread Ray Tayek
hi, does anyone have a recent example? is this what you guys are using in your game programs? thanks --- co-chair http://ocjug.org/ ___ Computer-go mailing list Computer-go@dvandva.org http://dvandva.org/cgi-bin/mailman/listinfo/computer-go