Skip to content

This is a simple Connect4Game written in C++ using class and multi-files.

Notifications You must be signed in to change notification settings

alirazamumtaz/Connect-4-Game-using-cpp-class

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

This is a simple Connect4Game written in C++ using class and multi-files.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages