[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: computer-go: Sharing Go modules



> Is it similarly standard to use 0 for EMPTY, 1 for BLACK, 2 for WHITE,
> and 3 for EDGE ?

SmartGo also uses 1 for Black and 2 for White. However, it uses 4 for Empty
and 8 for points off the board. Using a separate bit for each color allows
fast tests for e.g. White OR Empty.

Anders Kierulf
www.smartgo.com