How do you code a Connect4 game?
-two players (represented each by a special symbol, i.e. 1 for player 1 or 2 for player 2 and 0 for empty entries)
-fixed size 8 by 8 table
-using a 2D array but 1D array to keep track of most bottom empty entry of each column in the board
-have a function that checks if a winning occurs after a specific player made a specific move. It must take the 2D array representing the board, player making the move, and the coordinates of that move( column: given by you as input, and row: generated automatically) as arguments
-have four constants TABLESIZE, PL1, PL2 and EMPTY. #define them properly and they have to be used throughout the code
Since I'm just learning C language, I would appreciate it if there is no use of advanced C language so I can understand it. Basically, this is to help me out in understanding Arrays.
Thanks alot in advance. Hope to hear from you guys on what you think.