Skip to content

About

An online multiplayer implementation of the classic Bluff card game. Outsmart opponents, challenge claims, and eliminate hand cards in real-time card rooms

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

12 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Bluff Royale

Bluff Royale Logo

An online multiplayer implementation of the classic Bluff card game. Outsmart opponents, challenge claims, and eliminate hand cards in real-time card rooms.

🎮 Play Directly Here (Live Demo)


Overview

Bluff Royale is a web-based multiplayer card game inspired by classic tabletop card room aesthetics. Built with a rich dark mahogany palette and responsive interface components, the platform delivers real-time gameplay for the classic card game Bluff / Cheat powered by WebSockets.


Screenshots

Landing Page Hero
image
Real-Time Card Table
image

Features

  • Casino Visual Theme: Dark mahogany wood aesthetic combined with custom card components and consistent UI elements.
  • Real-Time Multiplayer: Real-time room management, turn handling, move validation, and game state synchronization powered by Socket.IO.
  • In-Game Communication: Real-time room chat interface with match updates and activity logs.
  • Landing Page Interface: Dedicated landing page featuring game presentation, visual highlights, and navigation actions.
  • Interactive Rules and Leaderboards: Built-in modal dialogs for reviewing game mechanics and player rankings.
  • Responsive Layout: Compatible across mobile, tablet, and desktop viewports.

Tech Stack


Directory Structure

bluffgame/
├── backend/
│   ├── game/
│   │   └── gameLogic.js       # Card deck management, shuffling, move validation, win logic
│   ├── handlers/
│   │   └── socketHandlers.js  # Socket.IO event listeners, room state, timers
│   ├── server.js              # Express server setup and HTTP initialization
│   └── package.json
│
├── frontend/
│   ├── public/
│   ├── src/
│   │   ├── assets/
│   │   │   ├── logo.png       # Project logo asset
│   │   │   ├── hero_cards.png # Playing cards hero asset
│   │   │   └── wood_bg.png    # Table background texture asset
│   │   │
│   │   ├── components/
│   │   │   ├── Navbar.jsx          # Top navigation bar
│   │   │   ├── Hero.jsx            # Hero section component
│   │   │   ├── FeatureCard.jsx     # Feature preview card component
│   │   │   ├── Button.jsx          # Styled action button component
│   │   │   ├── RulesModal.jsx      # Game rules modal dialog
│   │   │   ├── LeaderboardModal.jsx# Leaderboard modal dialog
│   │   │   ├── LoginModal.jsx      # Authentication and guest login modal
│   │   │   ├── Lobby.jsx           # Matchmaking and room lobby component
│   │   │   ├── GameBoard.jsx       # Interactive card table component
│   │   │   └── ChatPanel.jsx       # Live chat component
│   │   │
│   │   ├── pages/
│   │   │   └── Landing.jsx         # Main landing page view
│   │   │
│   │   ├── App.jsx                 # Main application container and socket state
│   │   ├── index.css               # Global CSS styling
│   │   └── main.jsx
│   │
│   ├── index.html
│   ├── vite.config.js
│   └── package.json
│
└── README.md

Getting Started

Prerequisites

  • Node.js (v18 or higher)
  • npm or yarn package manager

Installation

  1. Clone the repository:

    git clone https://github.com/atulya-srivastava/bluff-royale.git
    cd bluffgame
  2. Install dependencies:

    # Install frontend dependencies
    cd frontend
    npm install
    
    # Install backend dependencies
    cd ../backend
    npm install

Local Development

  1. Start backend server:

    cd backend
    npm run dev
  2. Start frontend development server:

    cd frontend
    npm run dev
  3. Open your browser and navigate to http://localhost:5173.


Production Build

To build the frontend for production deployment:

cd frontend
npm run build

Production-ready static assets will be output to the frontend/dist directory.


Future Roadmap

  • Persistent ELO rating system and match history database
  • Customizable card back themes and profile customization
  • Sound theme selector options
  • Spectator mode for live matches

License

This project is licensed under the MIT License.

About

An online multiplayer implementation of the classic Bluff card game. Outsmart opponents, challenge claims, and eliminate hand cards in real-time card rooms

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages