Develop a C program that will simulate the Connect Four game. The game should have two modes: player verses player...
Develop a C program that will simulate the Connect Four game. The game should
have two modes: player verses player and player verses computer. In the case of
player verses computer, there should be three levels of difficulty: easy,
intermediate and hard. In the easy level, the computer should just randomly pick
places to drop the disc randomly. For the case of intermediate, the computer should
attempt to block all horizontal and vertical attempts for victory. The hard level
should make the computer defend vertical, horizontal and diagonally paths to
victory, while aggressively trying to win the game. By playing offense, the
computer should attempt to aggressively win the game.
Connect four is a two player game in which players take turns dropping alternating
colored disc (red and black) into a six row by seven column vertically suspended
grid. The object of the game is to connect four single colored discs in a row
vertically, horizontally or diagonally.
The Connect four grid should be displayed with “x” and “o” being used in
place of the red and black disc. The grid display should be redrawn after each
player takes a turn and should the current state of the game. Once, the game is
over. The program should output who won the game or output that the game
resulted in a tie.
Must use standard C libs, compile in Microsoft Visual Studio.
13 years ago
70
Answer(1)![blurred-text]()
![]()
Purchase the answer to view it

- connect4.c
- board.h
- player.h
Bids(0)
other Questions(10)
- Your have been contracted by HealthFirst Hospital Foundation (HHF),? Your have been contracted by HealthFirst Hospital Foundation (HHF), a charitable organization...
- Justcookbooks.com Part I and Part II
- Music! 5 paragraphs: 1.intro stating your topic and mentioning the 3 main ideas you will discuss in the body paragraphs. 2,3,4 one paragraph...
- fin10
- read below
- Abortion Public Policy: What is the author's position and what is he/she doing with it? Why?
- Healthcare Finance
- Management Decision Model/Decision Tree Now assume your friend, Jennifer the banker (formerly a bank teller), has asked for your advice as...
- I would like you to draw an analogy between Plato’s Allegory of the Cave and one aspect of modern life. You can choose religion, or you can choose the government, the media, school, etc. Explain the following symbolic representations: cave, prisoners, fir
- Q1: The following data shows the liver sizes measured to the nearest 1 cm of 40 chimpanzees. Size Frequency 5.0 - 6.0 4 6.0 -...