{"id":27173236,"url":"https://github.com/lvocanson/tic-tac-toe-online","last_synced_at":"2025-06-28T07:33:02.093Z","repository":{"id":209339191,"uuid":"717380128","full_name":"lvocanson/Tic-Tac-Toe-Online","owner":"lvocanson","description":null,"archived":false,"fork":false,"pushed_at":"2023-11-25T15:03:00.000Z","size":10417,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2023-11-26T19:43:55.107Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/lvocanson.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2023-11-11T10:02:38.000Z","updated_at":"2023-11-26T19:43:56.486Z","dependencies_parsed_at":"2023-11-26T19:53:56.304Z","dependency_job_id":null,"html_url":"https://github.com/lvocanson/Tic-Tac-Toe-Online","commit_stats":null,"previous_names":["lvocanson/tic-tac-toe-online"],"tags_count":1,"template":null,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lvocanson%2FTic-Tac-Toe-Online","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lvocanson%2FTic-Tac-Toe-Online/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lvocanson%2FTic-Tac-Toe-Online/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lvocanson%2FTic-Tac-Toe-Online/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lvocanson","download_url":"https://codeload.github.com/lvocanson/Tic-Tac-Toe-Online/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248027417,"owners_count":21035594,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-04-09T10:51:00.444Z","updated_at":"2025-04-09T10:51:00.909Z","avatar_url":"https://github.com/lvocanson.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"# TicTacToe-Online\n\n## Context \nThis project was made during our course of Windows Online Programming and Multi-Threading.\nThe goal was to develop a basic Tic Tac Toe game with a simple GUI and a server capable of handling multiple games simultaneously.\n\n## FEATURES\n- Basic TicTacToe game using the [SFML](https://www.sfml-dev.org/) and C++\n    - State machine to easily create multiple views (i.e : Home, Login, History, Lobby, Game)\n    - Two different game modes:\n        - CLASSIC: The original TicTacToe experience.\n        - FAST: Each player has a limited time to make a move!\n- Server sending and receiving messages from multiple clients\n    - `send` and `receive` procedure via Windows window events:\n        - Custom window messages\n        - Send and Read data as JSON using [Niels Lohmann's library](https://github.com/nlohmann/json)\n    - Lobby management to handle multiple games\n- Multi-threading paradigms and functionalities\n    - Main client loop on the main thread\n    - Communications with the server are on a secondary thread\n- Web server accessible via any browser to observer all ongoing games\n\n## How to use\n\nFollow these steps to play the game:\n1. Download the project from the GitHub release section.\n2. Run the local server by executing the `Server.exe` file. The server is needed to play as it will host your games.\n3. Run the client by executing the `Client.exe` file.\n4. Enjoy!\n\n**NOTE:** You can run multiple clients on the same computer.\n**WARNING:** You need to be on the same network to connect to the server.\n\n## How to play\n\n\u003e Make sure the server is running 😉\n\n### Connection\n\nWhen you start `Client.exe`, you will need to connect to the server with a PassPhrase.\nThe PassPhrase can be found in the Server console and look like this: `=\u003e Game Server Phrase: PASSPHRASE`\n\n---\n![Connection screen](Screenshots/TicTacToe_screenshot_connect.png)\n\n### Lobby\n\nOnce connected, you can enter in a **CLASSIC** or **FAST** lobby.\nWe recommend the **FAST** mode, it's more fun!\n\n---\n![Lobby selection scren](Screenshots/TicTacToe_screenshot_lobby.png)\n\n### Game\n\nThe game will automatically start when there are 2 players in the lobby.\nWhen the game is over, the server will automatically reset the board.\nIf any player leaves, the board will be reset, and lobby will return to a waiting state.\n\n---\n|              Waiting               |             In Game (Fast)             |\n|:----------------------------------:|:--------------------------------:|\n| ![Waiting in a lobby screenshot](Screenshots/TicTacToe_screenshot_game.png) | ![Ongoing \"Fast\" game screenshot](Screenshots/TicTacToe_screenshot_ongoing.png) |\n\n### History\n\nOnce connected, you can view all the games played in the server.\nThe games history is lost when the server shuts down.\n\n---\n![History screen](Screenshots/TicTacToe_screenshot_history.png)\n\n## How to access the web server\n\n\u003e Make sure the server is running 😉\n\nWhen you start `Server.exe`, a web server is also started.\nThe URL of the web server is printed in the console like this: `=\u003e Web Server Address: YOUR_IP`\nYou can `Ctrl + Click` it to open the link in your browser, instead of copying.\n\n**NOTE:** You cannot play the game on your browser, it is only used to observe the ongoing games.\n\n---\n![Ongoing game on browser](Screenshots/TicTacToe_screenshot_web.png)\n\n## CREDITS\n\n### Supervisor\n* [Sylvain SECCIA](https://www.seccia.com/)\n\n### Collaborators\n* [Hugo MAESTRACCI](https://github.com/sh4dy01)\n* [Nathanael VOGT](https://github.com/Gotvna)\n* [Jun](https://github.com/Juuunnne)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flvocanson%2Ftic-tac-toe-online","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flvocanson%2Ftic-tac-toe-online","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flvocanson%2Ftic-tac-toe-online/lists"}