Skip to content

Harshada2004/connect_four

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 

Repository files navigation

connect_four

This repository contains a classic Connect Four game implemented in C++. Connect Four is a two-player connection game in which the players take turns dropping colored discs from the top into a vertically suspended grid. The objective of the game is to be the first to form a horizontal, vertical, or diagonal line of four discs of your color.

Features:

User-friendly command-line interface for gameplay. Two-player mode where players take turns to make their moves. A simple and intuitive grid representation. Winning condition detection for horizontal, vertical, and diagonal connections. Error handling for invalid moves and edge cases. How to Play:

Clone the repository to your local machine.

Compile the C++ code using your preferred compiler. Run the executable. Follow the on-screen instructions to make your moves. The game will display the winner or declare a draw when appropriate. Feel free to fork this repository, contribute improvements, or use it as a learning resource for C++ game development. Enjoy playing Connect Four!

About

This repository contains a classic Connect Four game implemented in C++. Connect Four is a two-player connection game in which the players take turns dropping colored discs from the top into a vertically suspended grid. The objective of the game is to be the first to form a horizontal, vertical, or diagonal line of four discs of your color.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors