25,161
edits
Changes
no edit summary
=Union Bitboard=
Rather then using shift/and instructions to get the ranrank-wise occupancies, and similar to [[Sherwin Bitboards]], one may use a [[C#Union|union]] of a bitboard and a struct or array of eight [[Byte|bytes]] (Portability concerning [[Endianness|endianness]] is an issue), to appear the code looking simpler.
<pre>
typedef unsigned char U08;