Need help with your Discussion

Get a timely done, PLAGIARISM-FREE paper
from our highly-qualified writers!

glass
pen
clip
papers
heaphones

EE285project-code

EE285project-code

EE285project-code

Question Description

Write this in C language.

Description

Four in a Line (known commercially as Connect Four) is a game in which two players take turnsadding tokens to a game board that consists of a 6-high by 7-wide grid. Players select thecolumn for their token, and the token is placed in the lowermost row that doesn’t already have atoken in it. The first player to place four tokens in a line (either horizontal, vertical, or diagonal)wins. The game results in a draw when there are no more grid spaces to place a token.

Required Functionality

1. Represent the game board as a two-dimensional array.

2. Represent a player as a struct that stores the players name and the number of gameswon.

3. Allow the two players to enter their names. Use each player’s name in the prompt fortheir turn.

4. Randomly choose which player goes first in the first game.

5. If the players play multiple games, alternate which player goes first.

6. If the players play multiple games, keep score for the number of games won for eachplayer and print it after each game.

7. Alternate turns between players. On each turn, the player should select the columnwhere they want to place a token.

8. Print the game board after each turn by passing the two-dimensional array to a functionthat you wrote.

9. Check for a winner or a draw after each turn by passing the two-dimensional array to afunction that you wrote.

10. Support winning by getting four in a row horizontally.

11. Support winning by getting four in a row vertically.

12. Support winning by getting four in a row diagonally.

13. At the end of a game, display which player won (or display that the game was a draw)and ask the players if they want to play again.

Coding Style Requirement

Use a clear and consistent coding style.

● Use proper indentation for the body of code blocks.

● Use descriptive variable and function names.

● Use consistent spacing, placement of brackets, newlines, etc.

send me back the pdf or text file.

Have a similar assignment? "Place an order for your assignment and have exceptional work written by our team of experts, guaranteeing you A results."

Order Solution Now

Our Service Charter


1. Professional & Expert Writers: Eminence Papers only hires the best. Our writers are specially selected and recruited, after which they undergo further training to perfect their skills for specialization purposes. Moreover, our writers are holders of masters and Ph.D. degrees. They have impressive academic records, besides being native English speakers.

2. Top Quality Papers: Our customers are always guaranteed of papers that exceed their expectations. All our writers have +5 years of experience. This implies that all papers are written by individuals who are experts in their fields. In addition, the quality team reviews all the papers before sending them to the customers.

3. Plagiarism-Free Papers: All papers provided by Eminence Papers are written from scratch. Appropriate referencing and citation of key information are followed. Plagiarism checkers are used by the Quality assurance team and our editors just to double-check that there are no instances of plagiarism.

4. Timely Delivery: Time wasted is equivalent to a failed dedication and commitment. Eminence Papers are known for the timely delivery of any pending customer orders. Customers are well informed of the progress of their papers to ensure they keep track of what the writer is providing before the final draft is sent for grading.

5. Affordable Prices: Our prices are fairly structured to fit in all groups. Any customer willing to place their assignments with us can do so at very affordable prices. In addition, our customers enjoy regular discounts and bonuses.

6. 24/7 Customer Support: At Eminence Papers, we have put in place a team of experts who answer all customer inquiries promptly. The best part is the ever-availability of the team. Customers can make inquiries anytime.

We Can Write It for You! Enjoy 20% OFF on This Order. Use Code SAVE20

Stuck with your Assignment?

Enjoy 20% OFF Today
Use code SAVE20