Try converting the hexadecimal into binary. For example, green would be 0000011111100000
Also, it is very rare to use an actual 16-bit color representation in this current day and age.
Last edited on
0x7BEF = 0111101111101111
0XF800 = 1111100000000000
(lightGray & redMask) = 01111000000000000
(lightGray & redMask ) >>11 = 0000000000001111
If I use bitmasking to generate moves for a checker game I could still use C-style arrays to represent the board instead of std::bitset?