An open API service indexing awesome lists of open source software.

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.

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`