How khusshhhhh/teen-patti-pot works
Teen Patti Pot is a single-page, shareable virtual-chip tracker. Players host or join a table, take turns betting or folding, and the host manages rounds; live table state is shared through Firestore. The README documents cards, reactions, archives, profiles, and device preferences as additional capabilities. The tree contains only index.html and no source excerpts were provided, so all app components map to that file and the graph includes only relationships described in the README.
Main entry points: index.html Live table state
Components 23
Table access
- Host or join
index.html - Room link and QR
index.html - Your tables
index.html - Optional PIN
index.html
Round gameplay
- Start round and boot
index.html - Deal and view cards
index.html - Hand ranking
index.html - Turn betting and fold
index.html - Fold for player
index.html - Showdown reveal
index.html - Award or void
index.html - Player reactions
index.html
State and records
- Live table state
index.html - Latest action feed
index.html - Leaderboard and history
index.html - Best hand tonight
index.html - CSV export
index.html - Past Games archive
index.html
Device features
- Lifetime profiles
index.html - Sound and theme
index.html
Other components
- Host
- Players
- Firebase Firestore
Connections 32
- Host → Host or join: hosts table
- Players → Host or join: join table
- Host or join → Optional PIN: checks PIN
- Host or join → Live table state: creates or joins
- Host or join → Room link and QR: shares room
- Host or join → Your tables: records membership
- Your tables → Live table state: reopens table
- Host → Start round and boot: starts round
- Start round and boot → Live table state: updates round
- Start round and boot → Deal and view cards: deals cards
- Players → Deal and view cards: views own cards
- Deal and view cards → Hand ranking: shows rank
- Players → Turn betting and fold: bets or folds
- Turn betting and fold → Live table state: updates turn
- Host → Fold for player: folds for player
- Players → Showdown reveal: reveals hand
- Showdown reveal → Best hand tonight: tracks best hand
- Host → Award or void: awards or voids
- Award or void → Live table state: updates chips
- Award or void → Leaderboard and history: updates standings
- Players → Player reactions: sends reaction
- Live table state → Latest action feed: shows actions
- Live table state → Leaderboard and history: supplies table results
- Leaderboard and history → CSV export: exports standings
- Host → Past Games archive: ends table
- Past Games archive → Live table state: removes live table
- Host or join → Lifetime profiles: reads lifetime stats
- Host → Sound and theme: sets preferences
- Players → Sound and theme: sets preferences
- Live table state → Firebase Firestore: syncs shared state
- Past Games archive → Firebase Firestore: stores archive
- Lifetime profiles → Firebase Firestore: stores stats