Question: This has to be in C++ 1. Connect-four is a two-player game in which the players alternatively drop colored disks into a seven column, six

 This has to be in C++ 1. Connect-four is a two-player

This has to be in C++

1. Connect-four is a two-player game in which the players alternatively drop colored disks into a seven column, six row vertically suspended grid. The objective of the game is to connect four same colored disks in a row, a column, or diagonal before your opponent can do likewise. The program prompts two players to RED or YELLOW disk alternatively. Whenever a disk is dropped, the program redisplays the board on the console and determines the status of the game (win, draw, or continue). Here is a sample run: ||||||| ||||||| ||||||| ||| R ||||||| | | |R|RY| Drop a red disk at column (0-6): 0 (ENTER) ||||||| | ||||| ||||||| |||RI |||||| IR IRRY Drop a yellow disk at column (0-6): 5 (ENTER) ||||||| | ||||| |||||| || IRRY || |Y|RY| |||R|RY| Yellow Player won! 1. Connect-four is a two-player game in which the players alternatively drop colored disks into a seven column, six row vertically suspended grid. The objective of the game is to connect four same colored disks in a row, a column, or diagonal before your opponent can do likewise. The program prompts two players to RED or YELLOW disk alternatively. Whenever a disk is dropped, the program redisplays the board on the console and determines the status of the game (win, draw, or continue). Here is a sample run: ||||||| ||||||| ||||||| ||| R ||||||| | | |R|RY| Drop a red disk at column (0-6): 0 (ENTER) ||||||| | ||||| ||||||| |||RI |||||| IR IRRY Drop a yellow disk at column (0-6): 5 (ENTER) ||||||| | ||||| |||||| || IRRY || |Y|RY| |||R|RY| Yellow Player won

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!