Ansari-Irfan-360 / Chat-Detective

An Chatting game where players must identify who they're chatting with among their friends
https://chat-detective.vercel.app
MIT License
1 stars 0 forks source link
chat-detective chatapp expressjs game-development multiplayer-game reactjs real-time socket-io websocket

Chat Detective

Table of Contents

Description

Chat Detective is an engaging and interactive game where players must guess each other’s identities based on chatting styles and personality traits. Friends join the game using their first names and a Room ID, then wait in a lobby until everyone is ready. The player who joins first becomes the lobby admin and starts the game once all players indicate they are ready.

Upon starting, each player is assigned a random name. Players must then chat with each other, trying to deduce who is who. Each player’s game name is listed with a dropdown menu containing the real names of all participants. Players can make guesses by selecting a real name they believe corresponds to a game name.

If the guess is correct, the guessed player is eliminated, and a message is broadcasted announcing the elimination, stating the guessed player’s game name and real name. If the guess is incorrect, the guesser is eliminated. Eliminated players remain in the game but cannot send messages; they can still read the ongoing conversation. Their names are also removed from the game name list and the suspect list.

The game continues until only one player remains uneliminated, who is then declared the winner. Rankings are assigned based on the order of elimination, with the first person eliminated being last and the final uneliminated player being first.

Game Rules

Features

Tech Stack

Client

Server

Usage

  1. Join or create a game session:

    • Open your browser and navigate to http://localhost:3000.
    • Enter your first name and the Room ID provided by the admin.
    • Wait in the lobby until all players are ready.
  2. Start chatting to discover other players' identities:

    • After the admin starts the game, each player is assigned a random name.
    • Use the chat feature to communicate with others and deduce their real identities.
  3. Guess identities using the provided dropdowns:

    • When you suspect a player's real identity, select their name from the dropdown.
    • If your guess is correct, the player is eliminated, and a message broadcasts the elimination.
    • If your guess is wrong, you risk elimination yourself.
  4. Avoid elimination and strategize to be the last player standing:

    • Eliminated players can no longer send messages but can observe the game.
    • The game continues until only one player remains, who is declared the winner.
    • Rankings are based on the order of elimination, with the first eliminated player ranked last.

Acknowledgements