Question: create a c language computer program to play the game connect four. 1 Connect Four in a Line Create a vidoo game vension of Connect
1 Connect Four in a Line Create a vidoo game vension of Connect Four in a Line in C. Connect Four in a Line is a two-player connection game in which the players first choose a symbol, cither X'a or O'%, and then take turns dropping an X or an 0 into the grid. The grid has seven columns, ench column of the grid is labeled A-C, and six rows. A player, on their turn, choowes a column from A-G. The grid is orkented vertically such that the symbol, x or O, falls to the loweast available space on the grid. The objective of the game is to be the first to form a horizontal, vertical, or dingonal line of four of one's own symbols. Your C program must . Alternate turns between play X and player o . Ask the player which eolumn (A-G) he/she would like to drop their symbol into. When a player chooses a column the symbol must fall to the lowest available space in that column. If the column is full (ie. no more spaces available in that column) then the program must tell the player to choose a different column. - Check for a win condition. Onee a valid column is chosen the program must check to see if a line of four is formed, in a row, column, or diagonal. , Check for a tie game. It is possible to end in a tie game so your program must checks for this possibility . Announce end game. If a winner is found, or if a tie game is achieved, then the program must announee the end game condition and offer to start a new game - Clear the board and start a new game if the plaver's chowe to play again. . Check for invalid entries after every input. . Allow both upper and lower case inputs (ie inputs B and b are treated the same)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
