https://github.com/najahaja/connect-four
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.
https://github.com/najahaja/connect-four
2dgame coding connectfour cplusplus github opensource sfml
Last synced: about 1 month ago
JSON representation
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.
- Host: GitHub
- URL: https://github.com/najahaja/connect-four
- Owner: najahaja
- Created: 2024-07-18T14:03:54.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2024-07-18T14:14:52.000Z (almost 2 years ago)
- Last Synced: 2025-05-31T11:36:11.045Z (about 1 year ago)
- Topics: 2dgame, coding, connectfour, cplusplus, github, opensource, sfml
- Language: C++
- Homepage:
- Size: 5.97 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# 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](https://www.sfml-dev.org/download.php) to download and install SFML for your operating system.
2. **Clone the Repository**
```bash
git clone
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**
```bash
./connect_four