Hi I'm trying to make a program that prompts the user for the dimensions of the game board and also the number of pieces in a row that is required to win (ie: connect 4, 5, 6 etc) from 4 up to 4 less than the game board size (so if game board size is 10, connect 6 would be the max).
I have labeled the first row of the array game board from 0 to [game board size]. I prompt the user to pick the column that corresponds to the number on the top to drop their game piece.
The problem I'm having is that after the user enters the column they wish to drop their piece, the game board does not update with the piece in the correct location. I suspect I may have messed up dynamically allocating my integer array. However, I'm not sure how I can fix it.
And because I am stuck after entering the column number during debugging, I cannot test the remainder of my code.
Feedback and answers to my worries would be greatly appreciated.