Skip to content

AdamHoward99/Connect-4-SFML-Network-Game

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Connect 4 SFML Game

This application is an SFML version of the classic Connect 4 game with multiplayer functionality included using a Client-Server model.

Screenshots

Title Screen Game Screenshot

How To Use

The project files contain folders for the game, server and required SFML libraries. The settings for the game are set to local host by default but can be changed using instructions below. This application is only supported on Windows OS.

To play the game without using local host you will be required to use 2 different computers both on the same network.

Instructions:

  • Run the server.exe on one of the computers.
  • Open the NetworkConnection.cpp file in the Game folder.
  • Locate line 32 and change the IP address value from 127.0.0.1 to the IPv4 address of the computer running the server.
  • Rebuild the game application using the settings Release, x86.
  • Now run the game.exe on the different computers (both computers NEED to be on the same network) and then press 'Find Match' when in game.
  • For matchmaking to work, both players will need to be searching at the same time otherwise the connection will time out.

Built With

  • C++
  • WinSock API
  • SFML API

Contributors

Adam Howard

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published