Skip to content

A real-time multiplayer Texas Hold'em poker game built with React and WebSockets. Supports private rooms, betting rounds, and dealer logic. Designed to showcase full-stack game development and live multiplayer synchronization.

Notifications You must be signed in to change notification settings

ethanbrook-dev/TexasHoldEm-poker-multiplayer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

51 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Multiplayer Poker

A real-time multiplayer poker game built with React and Socket.IO, supporting live betting, chip tracking, folding logic, and automatic showdown evaluation.


Installation & Running Locally

To install and run the project locally, follow these steps:

git clone https://github.com/GitProjsStack/poker-room-multiplayer.git
# Assuming you are at the root of the project -> ...\poker-room-multiplayer>
cd server
npm install
cd ..
npm install

Then start the server by running:

node server/index.js

Wait until you see the message:

✅ Server running on http://localhost:xxxx (usually 3001)

Next, start the client UI with:

npm start

This will open the client at http://localhost:3000.

Each player should open their own browser tab at localhost:3000 to join the game and start playing.


Features

  • Create or join private poker rooms via room code
  • Real-time multiplayer gameplay with live betting
  • Actions: Fold, Call (minimum 2 chips, no checking), Raise
  • Pot and bet size synced across all players
  • Player chip balances updated in real time
  • Folded players are skipped and locked out of further actions
  • If one player remains (everyone else folds), they win the pot and a new round starts
  • Community cards dealt progressively during each betting loop
  • Final showdown using pokersolver to determine winner
  • Winner’s chips awarded before next round starts
  • Clean UI: player hands, community cards, game messages, and error feedback
  • Host has control over starting the game

How It Works

  1. Players create or join a room with a name and code
  2. The host starts the game
  3. Each player receives two private cards
  4. Players take turns to Fold, Call, or Raise
  5. Betting continues until everyone matches the bet or folds
  6. Community cards are revealed in rounds
  7. If only one player remains, they win by default
  8. Otherwise, a showdown reveals all hands and evaluates the best one
  9. Chips are awarded, and the game continues with a new round (same players and chip counts)

Tech Stack

Frontend

  • React (Hooks, Context API)
  • Socket.IO client
  • CSS styling

Backend

  • Node.js
  • Socket.IO for real-time communication
  • In-memory game state tracking per room

Game Logic


About

A real-time multiplayer Texas Hold'em poker game built with React and WebSockets. Supports private rooms, betting rounds, and dealer logic. Designed to showcase full-stack game development and live multiplayer synchronization.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •