LyingMan is a real-time social deduction game made possible with firebase realtime. Players join a room, receive secret words, and try to identify the imposter among them through clever descriptions and voting.
LyingMan.mp4
LyingMan (卧底) is a game my friends and I used to play back in school — thinking about it always brings back great memories of laughter and clever guesses. It wasn’t just a game; it was part of what made our school days so special, a simple joy that brought us closer together.
- Real-time multiplayer: Up to 8 players per room.
- Secret roles: All but one player receive the same word; one imposter gets a similar but different word.
- Describe & deduce: Each player describes their word in the chat—be subtle!
- Voting: After all descriptions, players vote for who they think is the imposter.
- Rounds: The game continues until the imposter is caught or only two players remain.
- Responsive design: Mobile and desktop friendly.
- Automatic player removal: Disconnected or eliminated players are removed from the game.
- Create or join a room (minimum 4 players).
- Receive your secret word. One player is the imposter with a different word.
- Describe your word in the chat—try not to give it away!
- Vote for who you think is the imposter.
- Elimination: The player with the most votes is eliminated. If it’s a tie, no one is eliminated.
- Win conditions:
- If the imposter is eliminated, the others win.
- If only two players remain and the imposter is still in, the imposter wins.
- Otherwise, the game continues to the next round.
- Clone the repository:
git clone https://github.com/leecheeyong/LyingMan.git cd LyingMan
- Install dependencies:
npm install # or yarn install
- Configure Firebase:
- Go to Firebase Console and create a new project.
- Enable Authentication (Email/Password).
- Set up Cloud Firestore in test mode (or with secured rules).
- Edit the
src/firebase.js
file, replace with your Firebase credentials
LyingMan is available as open source under the terms of the MIT License.