A real-time multiplayer number guessing game with chat functionality.
- Game Master creates sessions with difficulty levels (Easy: 1-50, Medium: 1-100, Hard: 1-500)
- Players join sessions using session ID
- Smart hints system after each guess (temperature and directional)
- In-game chat for communication
- Score tracking and winner announcement
- Clone the repository
- Install dependencies:
cd number-guessing-game-js npm install
- Set up
.envfile with MongoDB connection string:MONGO_URI=your_mongodb_connection_string PORT=3000 - Start the server:
npm start
- Open browser at
http://localhost:3000
- Enter username and select role (Player/Game Master)
- Game Master creates session and shares ID
- Players join using the session ID
- Game Master starts the game when ready
- Guess the number or chat with other players
- Node.js
- Express
- Socket.IO
- MongoDB
- EJS
- Mongoose