I.e., you should never see this in code:
if (piece != Black)
If there are only two states, and provably will never be more; it's either or.
A classic case of this:
if (!Windows) ... do something for Posix ...