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.
- 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
- Custom window messages
- Send and Read data as json using C++ json library
- Session management to manage multiple games
- Send all sessions updates to a Web server
- 'send' and 'receive' procedure via Windows window events
- Multi-threading paradigms and functionalities
- Web Server and Server network manager both running on independents threads
- Client network manager running on independent thread
- Download the project in the GitHub release section.
- Run the local server by executing the
server.exe
file. - Run the client by executing the
client.exe
file. - Enjoy the game!
NOTE : You can run multiple clients at the same time.
Make sure the server is running. :)
When you start client.exe
, you will need to connect to the server.
Once connected, you can play or customize your profile.
Menu | Profile |
---|---|
When you start a game, you will need to either create or join a session.
Create | Join |
---|---|
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 |
---|---|