Skip to content

Online Tic-Tac-Toe game in C++, using the SFML for graphics, server-based multiplayer functionality, and efficient use of threads and window events for real-time gameplay.

Notifications You must be signed in to change notification settings

Sinozer/ThoGuiAlThe

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ThoGuiAlThe

Context

This project was made for the course of Windows Online Programming and Multi-Threading. The goal was to create a basic Tic Tac Toe game with a GUI and a server that can handle multiple games at the same time.

Features

  • Basic TicTacToe game using the SFML and C++
    • State(scene) manager to easily create multiple views (i.e : Login, Home, Wait, Game)
    • Profile management
  • Server sending and receiving messages from multiple clients
    • 'send' and 'receive' procedure via Windows window events
    • Session management to manage multiple games
    • Send all sessions updates to a Web server
  • Multi-threading paradigms and functionalities
    • Web Server and Server network manager both running on independents threads
    • Client network manager running on independent thread

How to use

  1. Download the project in the GitHub release section.
  2. Run the local server by executing the server.exe file.
  3. Run the client by executing the client.exe file.
  4. Enjoy the game!

NOTE : You can run multiple clients at the same time.

How to play

Make sure the server is running. :)

Connexion

When you start client.exe, you will need to connect to the server.


start

Home

Once connected, you can play or customize your profile.


Menu Profile
menu profile

Start A Game

When you start a game, you will need to either create or join a session.


Create Join
create join

Game

Once you are in a session, you can play the game. The game will automatically start when there is 2 players in the session. When the game is over, you you will be able to restart the game or go back to the home screen.


In-Game Game End
create join

About

Online Tic-Tac-Toe game in C++, using the SFML for graphics, server-based multiplayer functionality, and efficient use of threads and window events for real-time gameplay.

Resources

Stars

Watchers

Forks

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •  

Languages