https://github.com/locus-x64/connect-4-game-using-cpp-class
This is a simple Connect4Game written in C++ using class and multi-files.
https://github.com/locus-x64/connect-4-game-using-cpp-class
cpp game oop-project
Last synced: 8 months ago
JSON representation
This is a simple Connect4Game written in C++ using class and multi-files.
- Host: GitHub
- URL: https://github.com/locus-x64/connect-4-game-using-cpp-class
- Owner: locus-x64
- Created: 2020-10-18T13:40:36.000Z (over 5 years ago)
- Default Branch: main
- Last Pushed: 2021-09-13T23:18:19.000Z (almost 5 years ago)
- Last Synced: 2025-02-01T03:06:45.713Z (over 1 year ago)
- Topics: cpp, game, oop-project
- Language: C++
- Homepage:
- Size: 48.8 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# How to play?
Connect 4 is simple game played on a standing board with 7 rows and 7 columns. Players have pieces of two different colors (mostly yellow
and red). Each player can drop a piece from top in any one of the columns and the piece will fall and settle on the next empty slot
available on the board. Players take alternative turns until one of the players win or until no more moves are possible. A player wins if she
has four of her pieces placed consecutively horizontally, vertically or diagonally!
In this game, I have used '1' and '2' instead of yellow and red columns. I have designed it on my own so you can look and change the design accordingly.
# To complie use command:
`g++ main.cpp Connect4Game.cpp`