Skip to content

nosgamingalt/ScuffedCribbage

Repository files navigation

🎮 Multiplayer ScuffedCribage Game

An interactive ScuffedCribage game with hosted multiplayer! Players join from their mobile devices using a room code.

🚀 How to Run

  1. Install dependencies:

    npm install
  2. Start the server:

    npm start
  3. Open the game:

    • Player Join (default): http://localhost:3000 or http://localhost:3000/player
    • Host Display (main screen with board): http://localhost:3000/host

📱 How to Play

On the Main Screen (Host):

  1. Open http://localhost:3000 in your browser
  2. A 6-digit room code will be displayed
  3. Share this code with players
  4. The board shows the game state, scores, and played cards

On Mobile/Other Devices (Players):

  1. Open http://localhost:3000/player on your phone/tablet
  2. Enter the 6-digit room code
  3. Enter your name (optional)
  4. Click "Join Game"
  5. You'll see only YOUR cards
  6. Select a card and tap "Play Selected Card"
  7. Use "Go" if you can't play

🌐 Playing on Mobile (Same Network)

To play on mobile devices:

  1. Find your computer's IP address:
    • Windows: Run ipconfig and look for IPv4 Address
    • Mac/Linux: Run ifconfig or ip addr
  2. On mobile, go to: http://YOUR_IP_ADDRESS:3000/player
    • Example: http://192.168.1.100:3000/player

🎯 Features

  • ✅ Real-time multiplayer with Socket.IO
  • ✅ Room-based games with unique codes
  • ✅ Players see only their own cards
  • ✅ Animated pegs on the main board
  • ✅ Automatic scoring (15s, pairs, runs, go, 31)
  • ✅ Mobile-friendly player interface
  • ✅ Beautiful wood & felt aesthetic

🎲 Game Rules

  • First to 121 points wins
  • Score points during play for:
    • 15: 2 points
    • Pairs: 2 points (6 for three, 12 for four)
    • Runs: 1 point per card in sequence
    • 31: 2 points
    • Go: 1 point
    • Last Card: 1 point

Enjoy your game! 🎉

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages