Skip to content

popright/VibePoker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

VibePoker - Multiplayer Texas Hold'em

A multiplayer Texas Hold'em poker game built with Node.js, Express, and Socket.io. Play with 2-6 players on separate devices.

Features

  • 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

Requirements

  • Node.js (v14.0.0 or higher)
  • npm (comes with Node.js)

Installation & Setup

  1. Clone this repository or download the source code
  2. Navigate to the project directory
cd VibePoker
  1. Install the dependencies
npm install
  1. Start the game server
npm start
  1. Open a web browser and navigate to:
http://localhost:3000

Playing with Friends on Separate Devices

To play with friends on separate devices on your local network:

  1. Find your computer's local IP address (e.g., 192.168.1.x)
  2. Start the server as described above
  3. Have your friends connect to http://YOUR_IP_ADDRESS:3000 in their browsers
  4. Create a game and share the game code with your friends
  5. Friends can join using the game code

Note for Playing Across the Internet

To play across the internet (not just on your local network), you would need to:

  1. Deploy the game on a public server, or
  2. Set up port forwarding on your router (advanced)
  3. Use a service like ngrok to create a temporary public URL

How to Play

  1. 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"
  2. 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
  3. 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
  4. 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
  5. 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
  6. 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

License

This project is licensed under the ISC License.

Author

Created by Github Copilot

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors