I am writing a short program which will eventually play connect four.
There is one part which isn't working. I have a jagged array declared on line 16:
char[][] board = Enumerable.Repeat(Enumerable.Repeat('-', 7).ToArray(), 7).ToArray();
Which I think looks like this:
-------
-------
-------
-------
-------
-------
-------
when I do this board[5][2] = '*'
I get
--*----
--*----
--*----
--*----
--*----
--*----
--*----
instead of what I'd like:
-------
-------
-------
-------
-------
--*----
-------
How it runs at the moment (output should only have one asterisk):
(source: cubeupload.com)