A real-time 2-player Tic-Tac-Toe game built with ReactJS, NodeJS, and Socket.io. The game is played on a 16x16 game board.
Link website: https://sondm-tictactoe.netlify.app
- Real-time 2-player gameplay.
- A 16x16 game board for added complexity.
- Handle cells highlighting.
- Create/join/leave room and rematch handling.
- Responsive design for great user experience on various devices.
- Socket.io integration for real-time updates and multiplayer functionality.
- ReactJS
- NodeJS
- Socket.io
- TypeScript
-
Clone the repository:
git clone https://github.com/SonDo580/tic-tac-toe.git
-
Install server dependencies:
cd server yarn
-
Install client dependencies:
cd client yarn
-
Start the server in development mode:
cd server yarn dev
-
Start the client in development mode:
cd client yarn dev
-
Access the game in your web browser at
http://localhost:5173
by default.
- The game is played by 2 players taking turns to place their marks (X or O) on a 16x16 grid.
- The objective is to achieve a line of 5 of your marks horizontally, vertically, or diagonally.
- The first player to do so wins the game. If the board is full and there's no winner, the result is tie.
-
Create a new room, get the room ID and send it to your friend. Or join an existing room using room ID.
-
Play the game according to
Game Rules
. -
When the game is finished, you will be asked to play again.
-
You can also request a rematch or leave the room at any time.