Skip to content

Challenge your friends to the classic Connect Four game, built using C++ and SFML! Enjoy a modern twist on the timeless strategy game with polished 2D graphics, smooth gameplay, and intuitive controls. Perfect for both casual gamers and developers looking to explore game development with C++ and SFML.

Notifications You must be signed in to change notification settings

najahaja/Connect-four

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Connect Four - C++ SFML Implementation

Overview

This project is a C++ implementation of the classic Connect Four game using the SFML library. The game is designed for two players, where each player takes turns dropping colored discs into a vertical grid. The objective is to connect four of one's own discs horizontally, vertically, or diagonally before the opponent.

Features

  • Two-player gameplay.
  • Graphical user interface with a visual representation of the game board.
  • Dynamic status updates to indicate the current player's turn.
  • Visual indication of the winning sequence of discs.
  • Option to reset the game and start a new match.

Prerequisites

  • C++ Compiler
  • SFML Library (version 2.5.1 or later)

Setup Instructions

  1. Install SFML

    Follow the instructions on the official SFML website to download and install SFML for your operating system.

  2. Clone the Repository

    git clone <repository-url>
    cd connect-four

3.Compile the Code Ensure you have a C++ compiler installed. Use the following command to compile the code:

g++ -o connect_four main.cpp -lsfml-graphics -lsfml-window -lsfml-system

4.Run the Game

./connect_four

About

Challenge your friends to the classic Connect Four game, built using C++ and SFML! Enjoy a modern twist on the timeless strategy game with polished 2D graphics, smooth gameplay, and intuitive controls. Perfect for both casual gamers and developers looking to explore game development with C++ and SFML.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages