Question: for this connect 4 program I need a class named chip.cpp that can be put into main that will alternate between player 1 and player

for this connect 4 program I need a class named chip.cpp that can be put into main that will alternate between player 1 and player 2 and randomly drop chips down slots in the board. this is what I have so far.

for this connect 4 program I need a class named chip.cpp that

can be put into main that will alternate between player 1 and

player 2 and randomly drop chips down slots in the board. this

is what I have so far. board should look something like this

board should look something like this

what kind of information do you need exactly?

ework1 1 2. 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 Chip.h* 4 Board.cpp Board.h Player.h Player.cpp gamedriver.cpp 6 X (Global Scope) -e main E#include #include "Player.h" #include "board.h" using namespace std; Pint main() { char board[9][10]: string playerOneName; string playerTwoName; string playerOneColor = "G"; string playerTwoColor = "R"; Player playerone, playerTwo; Board showBoard; cout > playerOneName; playerOne.setName(playerOneName); cout > playerTwoName; playerTwo.setName(playerTwoName); cout #include "Player.h" using namespace std; 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 Evoid Player::setName(string a) { playerName = a; } string Player::getName() { return playerName; } Evoid Player::setplayerColor(string b) { color = b; Estring Player::getplayerColor() { return color; } 36 No issues found m Player.cpp gamedriver.. 1 Chip.h* a Board.cpp + X Board.h Player.h > Board E#include "Board.h" #include using namespace std; Evoid Board::displayBoard(char board[][10]) { int i, a; le for (i = 1; i #include "Player.h" #include "board.h" using namespace std; Pint main() { char board[9][10]: string playerOneName; string playerTwoName; string playerOneColor = "G"; string playerTwoColor = "R"; Player playerone, playerTwo; Board showBoard; cout > playerOneName; playerOne.setName(playerOneName); cout > playerTwoName; playerTwo.setName(playerTwoName); cout #include "Player.h" using namespace std; 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 Evoid Player::setName(string a) { playerName = a; } string Player::getName() { return playerName; } Evoid Player::setplayerColor(string b) { color = b; Estring Player::getplayerColor() { return color; } 36 No issues found m Player.cpp gamedriver.. 1 Chip.h* a Board.cpp + X Board.h Player.h > Board E#include "Board.h" #include using namespace std; Evoid Board::displayBoard(char board[][10]) { int i, a; le for (i = 1; i

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!