Skip to content

Ali-Ch-001/Connect-4-Game

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Connect 4 Game

A command-line based Connect 4 game implemented in C++.

Table of Contents

Introduction

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.

Features

  • Two-player gameplay
  • Command-line interface
  • Simple and intuitive design
  • Detection of win conditions

Images

1

Requirements

  • C++ Compiler (e.g., g++)

Installation

  1. Clone the repository:

    git clone https://github.com/Ali-Ch-001/Connect-4-Game.git
    cd connect4
  2. Compile the game:

    g++ -o Connect-4-Game Connect-4-Game.cpp

Usage

Run the game using the compiled binary:

./Connect-4-Game

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages