A command-line based Connect 4 game implemented in C++.
Connect 4 is a two-player connection game in which the players first choose a color and then take turns dropping colored discs from the top into a seven-column, six-row vertically suspended grid. The pieces fall straight down, occupying the lowest available space within the column. The objective of the game is to be the first to form a horizontal, vertical, or diagonal line of four of one's own discs.
- Two-player gameplay
- Command-line interface
- Simple and intuitive design
- Detection of win conditions
- C++ Compiler (e.g., g++)
-
Clone the repository:
git clone https://github.com/Ali-Ch-001/Connect-4-Game.git cd connect4
-
Compile the game:
g++ -o Connect-4-Game Connect-4-Game.cpp
Run the game using the compiled binary:
./Connect-4-Game