This project is a digital public table for the Detetive board game. It allows users to:
- Control player positions on the board
- Distribute cards to players with secret envelope functionality
- Roll dice with 3D animations
- View the game state in real time
- Generate and reveal the secret solution
- Frontend: React + TypeScript (Vite)
- 3D Graphics: Three.js for dice animations
- Styling: Modern CSS with detective theme
- 🎯 Secret Envelope: Automatically generates crime solution (person, weapon, place)
- 🎲 3D Dice: Realistic dice rolling with physics animations
- 👁️ Card Privacy: Toggle card visibility per player
- 🔄 Card Distribution: Flexible card shuffling between selected players
- 🏗️ Interactive Board: Visual game board with player positions
- 🎨 Detective Theme: Modern, mysterious styling
-
Install dependencies:
npm install
-
Run development server:
npm run dev
-
Build for production:
npm run build
-
Build the project:
npm run build
-
Deploy using GitHub Actions (automatic on push to main) or manually:
npm run deploy
The app will be available at: https://[username].github.io/Investigator/
The project is configured for GitHub Pages with:
- Vite base path set to
/Investigator/ - GitHub Actions workflow for automatic deployment
- Built files in
dist/directory
- Start the development server:
npm run dev
- Board UI with draggable player tokens
- Card distribution interface
- Dice rolling simulation
- Real-time updates for all players
MIT