In this project, I have developed simple games like tic-tac-toe using React and JavaScript, integrating React Router to navigate between different game views. Socket.IO is used to enable multiplayer functionality and real-time chatting within game rooms, providing an interactive and engaging user experience.
This project was created as a learning resource to explore and understand the capabilities of Socket.IO in handling real-time communication and dynamic user interactions. It demonstrates the implementation of various logic required to build multiplayer games with integrated chat features.
- For cloning:
git clone https://github.com/saksham-malhotra-27/Socket-tictactoe
- Then go to backend directory and install dependencies.
cd Socket-games-chats/backend
npm i
npm run start
- Then go to frontend directory and install dependencies.
cd Socket-games-chats/frontend
npm i
npm run dev
Users can create or join game rooms and play against each other in real time.
Players can chat with each other within the game room, enhancing the social interaction aspect of the games.
Smooth navigation between different game views and rooms.
User-friendly and responsive interface developed using React.
- Gained hands-on experience with Socket.IO and its integration with React.
- Learned to manage real-time communication between multiple clients.
- Improved understanding of React Router for navigating between different views in a single-page application.
- Enhanced skills in developing interactive and responsive user interfaces.