Question: Whats...LTE 3:04 PM chegg.com Write a program to implement the game connect-n. Connect-n is like Connect-4 except instead of having the board be a constant
Whats...LTE 3:04 PM chegg.com Write a program to implement the game connect-n. Connect-n is like Connect-4 except instead of having the board be a constant 6 X 7 we will allow the user to enter the size of the board they would like to play on. In addition we will also allow the user to choose how many pieces in a row are necessary to win The game is played as follows. Two players take turns dropping their pieces into a column until either player gets N of their pieces in a row either horizontally, vertically, or diagonally, or until their or no more spaces to play 1. Your program must accept 3 command line parameters in this order: number of rows, number of columns, number of pieces in a row to win 1. If the user does not enter enough arguments or enters too many arguments your program should tell them the proper usage of your program and terminate You may find the exit function helpful The user should be allowed to create an unwinable game 1. For example a board that ASK QUESTION Already a member? Sign in
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
