I use unit numbers too, but I do have 2 color bits, one for white and
one for white, only as an extra convienence. I'm happy to see some
empirical evidence (the fact that a good programmer also uses it) that
the way I chose to represent my board is reasonable.
I am interested in what information you keep per unit. I don't keep
much right now, but my list has changed from time to time with
different versions. But I'm focused mainly on very primitive basic
facts per unit:
1. Number of stones in unit.
2. A representive stone location. (can be any stone in unit)
3. Number of liberties for this unit.
4. Unit color
I'm only interested in things that can be incrementally maintained,
otherwise I just compute from scratch when I need it. I feel that I
need more primitives in my unit structure.
Don