This is a simple multiplayer Tic-Tac-Toe game built using React.js and Socket.io. It allows two players to play the classic game of Tic-Tac-Toe in real-time over the internet. Players can take turns to make moves, and the game will display the winner or a draw when the game ends.
You can play a live demo of the game at Tic-Tac-Toe Multiplayer.
To run this game locally or deploy it to your own server, follow these steps:
-
Clone the Repository:
git clone https://github.com/nil1729/in-memory-socket-server cd in-memory-socket-server
-
Install Dependencies:
Use npm or yarn to install the required dependencies.
npm install && npm run setup:frontend
-
Start the Development Server:
Start the backend server to run the app locally.
npm run start:dev
And start the frontend react application locally.
npm run start:frontend
Once you have the game running, here's how to use it:
- Open the game in a web browser.
- Share the game URL with a friend or open it in another browser to play against yourself.
- Players can take turns clicking on the board to place their X or O.
- The game will automatically detect if someone has won or if it's a draw.
- Enjoy playing Tic-Tac-Toe!
This project is licensed under the MIT License - see the LICENSE file for details.