A real-time multiplayer cooperative poker variant where players work together to predict hand strengths.
The Gang is a cooperative poker game where all players win or lose together based on their ability to correctly predict hand strengths.
Work as a team to correctly assign red chips (#1, #2, #3, etc.) to players based on the final strength of their poker hands. Player with red chip #1 should have the weakest hand, #2 the second weakest, and so on.
- Four Rounds: Pre-flop → Flop → Turn → River → Scoring
- Chip Colors: Each round has a different colored chip (White → Yellow → Orange → Red)
- Strategic Bidding: Players take chips from the public area or steal from other players
- Bidding History: All previous chip selections are visible to help infer hand strengths
- Final Prediction: Red chips in the river round represent your team's prediction of final hand rankings
The team wins if the red chip assignments match the actual hand strength rankings. If any red chip is assigned incorrectly, the entire team loses.
Standard poker hands apply (Royal Flush > Straight Flush > Four of a Kind > Full House > Flush > Straight > Three of a Kind > Two Pair > One Pair > High Card).
# Create virtual environment and install dependencies
python3 -m venv venv
source venv/bin/activate
pip install -r requirements.txt
# Install frontend dependencies
cd frontend
npm install
npm install react-scripts
cd ..Production Mode (Port 80):
sudo ./start_servers.shThen open http://localhost in your browser.
Development Mode (Ports 8000 + 3000):
./start_dev.shThen open http://localhost:3000 in your browser (with hot reloading).
Production:
# Build frontend
cd frontend && npm run build && cd ..
# Start Django server (serves both API and frontend on port 80)
sudo daphne -b 0.0.0.0 -p 80 thegang.asgi:applicationDevelopment:
# Start Django backend (port 8000)
daphne -b 0.0.0.0 -p 8000 thegang.asgi:application
# In another terminal, start React frontend (port 3000)
cd frontend && npm start- Enter your player name and room name
- Wait for other players to join (3-6 players needed)
- Any player can start the game when enough players are present
For implementation details and development history, see prompt.md.
