- Create the project structure with all files above
- Run:
docker-compose up --build - Access the game at: http://localhost:3000
- Click "Roll Dice" to roll all dice
- Click on dice to keep them (blue border)
- Roll again (up to 3 times total)
- Choose a scoring category
- Complete all 13 categories to finish the game
-
Backend: Node.js WebSocket server (port 3001)
- Handles game logic
- Computes dice rolls and scores
- Manages game state
-
Frontend: Next.js app (port 3000)
- Minimal UI
- WebSocket client
- Real-time state display
- Ones through Sixes: Sum of matching dice
- Three/Four of a Kind: Sum of all dice if condition met
- Full House: 25 points
- Small Straight: 30 points
- Large Straight: 40 points
- Yatze (5 of a kind): 50 points
- Chance: Sum of all dice
Backend: ./backend
Frontend: ./frontend
Both services run in Docker containers with auto-restart.