How do I create an array (8x8) of BitArrays (16 bits).
Posted on 2008-10-02
I awarded the points as the question was answered, the answer being:
BitArray[,] board = new BitArray[8, 8];
for (int i = 0; i < 8; i++)
for (int j = 0; j < 8; j++)
board[i, j] = new BitArray(16);
However, my question evolves.....what if I want the 8x8 Array to contain a Struct, so that each square on the board has an int colour and a 16 bitArray , and an int array