A web-based Tic-Tac-Toe game built with React and Socket.IO, offering both local multiplayer and * online multiplayer* modes. Play with a friend on the same device or connect remotely in real-time!
- 🎮 Local Multiplayer: Play with a friend on the same device.
- 🌐 Online Multiplayer: Real-time gameplay with remote players using Socket.IO.
- 🔁 Dynamic Game Board: Responsive and interactive UI built with React.
- 💡 Game Status Updates: Displays the current turn, win, or draw state.
- ⚡ Socket.IO Integration: Ensures seamless real-time communication between players.
- Frontend: React, JavaScript, CSS
- Backend: Node.js, Express, Socket.IO
- React Components: Modular components for the game interface.
- Styles: Custom CSS for a clean and responsive design.
- Socket.IO Events: Handles real-time communication and game logic.
- Room Management: Manages active rooms, player assignments, and game states.
- Clone the repository:
git clone https://github.com/AndrewVynnytskyi/tic-tac-toe-multiplayer.git cd tic-tac-toe-multiplayer - Install dependencies for both client and server:
cd client
npm install
cd ../server
npm install-
Start the server:
cd server node index.js -
Open your browser and navigate to
http://localhost:3000to play the game.
- Local Multiplayer: Click on the "Play Locally" button to start a game with a friend on the same device.
- Online Multiplayer: Click on the "Play Online" button to create or join a game room. Share the room ID with your friend to play together.
This project is licensed under the MIT License. See the LICENSE file for details.