A real-time multiplayer number guessing game with chat functionality.
- User creation/registration
- Difficulty levels (Easy: 1-50, Medium: 1-100, Hard: 1-500)
- Randomly generated session codes which can be used to join game rooms
- Player count tracking per session/game room
- Directional and temperature based hinting
- Server allows users to chat while to game goes on
- Users allowed to leave specific rooms
- Clone the repository
git clone https://github.com/MikaTech-dev/number-guessing-game-js.git
- Install dependencies:
cd number-guessing-game-js npm i
- Set up
.env& dont forget to add your MongoDB connection string:cp .env.example .env
- Start the server:
npm start
- Open browser at
http://localhost:3000
- Enter username and select role (Player/Host)
- Host creates session and shares ID
- Players join using the session ID
- Host starts the game when ready
- Guess the number & chat with other players
- Node.js
- Express.js
- Socket.IO
- MongoDB
- EJS
- Mongoose