A multiplayer Texas Hold'em poker game built with Node.js, Express, and Socket.io. Play with 2-6 players on separate devices.
- Real-time multiplayer gameplay using websockets
- Play with 2-6 players
- Full Texas Hold'em rules implementation
- Responsive design for both desktop and mobile devices
- Game room system with unique codes for joining
- Visual card interface
- Game history log
- Player actions: check, call, bet, raise, fold
- Side pots for all-in situations
- Hand evaluation system for determining winners
- Node.js (v14.0.0 or higher)
- npm (comes with Node.js)
- Clone this repository or download the source code
- Navigate to the project directory
cd VibePoker- Install the dependencies
npm install- Start the game server
npm start- Open a web browser and navigate to:
http://localhost:3000
To play with friends on separate devices on your local network:
- Find your computer's local IP address (e.g., 192.168.1.x)
- Start the server as described above
- Have your friends connect to
http://YOUR_IP_ADDRESS:3000in their browsers - Create a game and share the game code with your friends
- Friends can join using the game code
To play across the internet (not just on your local network), you would need to:
- Deploy the game on a public server, or
- Set up port forwarding on your router (advanced)
- Use a service like ngrok to create a temporary public URL
-
Create or Join a Game:
- To create a game, enter your username and click "Create Game"
- To join a game, enter your username and the game code, then click "Join Game"
-
Starting the Game:
- The player who created the game can click "Start Game" once at least 2 players have joined
- Each player starts with 1000 chips
-
Game Flow:
- The game follows standard Texas Hold'em rules
- Blinds: Small blind (5 chips) and Big blind (10 chips)
- Players take turns clockwise
- The dealer position rotates after each hand
-
Player Actions:
- Check: Pass the action to the next player (only if there's no bet to match)
- Call: Match the current bet
- Bet/Raise: Make a new bet or increase an existing bet
- Fold: Discard your hand and exit the current round
-
Game Phases:
- Pre-Flop: Each player is dealt two private cards
- Flop: Three community cards are dealt
- Turn: A fourth community card is dealt
- River: A fifth and final community card is dealt
- Showdown: Players reveal their hands to determine the winner
-
Hand Rankings (highest to lowest):
- Royal Flush: A-K-Q-J-10 of the same suit
- Straight Flush: Five sequential cards of the same suit
- Four of a Kind: Four cards of the same rank
- Full House: Three of a kind plus a pair
- Flush: Five cards of the same suit
- Straight: Five sequential cards
- Three of a Kind: Three cards of the same rank
- Two Pair: Two different pairs
- One Pair: Two cards of the same rank
- High Card: Highest card in your hand
This project is licensed under the ISC License.
Created by Github Copilot