'TIC TAC TOE' is a real-time web application built with Node.js and Socket.IO!
Players can create or join rooms where they can chat with each other. When a room has two players, a game of Tic Tac Toe can be started (if a room has more players, two players will be randomly selected).
Features | Status |
---|---|
Choose username | ✅ |
Create/join room | ✅ |
Chat with other users | ✅ |
Play Tic Tac Toe | ✅ |
Switch between players | ✅ |
Save game info on socket | ✅ |
Restart game | ✅ |
Leave/delete room | ✅ |
- Clone this repository
$ git clone https://github.com/ninadepina/tic-tac-toe.git
- Install dependencies
$ cd tic-tac-toe
$ npm i
- Create a .env file in the root of the project and add the following:
SESSION_SECRET=<YOUR SESSION SECRET>
PORT=<YOUR PORT>
- Run the server
$ npm run start
// or when wanting to use nodemon
$ npm run start:dev
In your browser, go to http://localhost:2222
(you can change the localhost PORT in the .env file)
Gain a better understanding and delve further into this project by reading the process documentation.
This project is licensed under the MIT License - see the LICENSE file for more details.