Question: Write a program for a game called connect four (in C++) ***I'm not sure how to even begin writing this. Any help provided would be
Write a program for a game called "connect four" (in C++)
***I'm not sure how to even begin writing this.
Any help provided would be greatly appreciated!***
***Please use The following libraries: iostream, cstdlib, cmath, string, ctime, etc.***
Please do not use these: cstdio.h, time.h, stdlib.h, cstring, etc. I have not learned these libraries yet.
This program:
1. Lays out a Connect 4 board (6 high x 7 long) and assigns each space a number.
2. Allows each player to select a space to play, filling that space with either an R or B for Red or Black.
3. Uses a random number generator to determine which player goes first.
4. One additional unique component.
Program must include:
- Functions
- Array
- Loop
- Branching
- Random number generator
Assumptions:
- The player can only fill in from the bottom of the board and on top of other plays.
Creative Liberties:
- Symbols used for the board.
- Symbols used to indicate each player.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
