Paresh
Val Town is a collaborative website to build and scale JavaScript apps.
Deploy APIs, crons, & store data – all from the browser, and deployed in milliseconds.
index.ts
https://Ral--bdcb5f9a37f311f093509e149126039e.web.val.run
An online dice betting game where players predict whether the sum of three dice will be:
- 7 Down: Sum is less than 7 (3-6)
- Lucky 7: Sum is exactly 7
- 7 Up: Sum is greater than 7 (8-18)
- Roll three dice (each showing 1-6)
- Possible sum range: 3-18
- Betting options:
- 7 Down (3-6): Pays 1:1
- Lucky 7 (exactly 7): Pays 4:1
- 7 Up (8-18): Pays 1:1
├── backend/
│ └── index.ts # Main Hono server
├── frontend/
│ ├── index.html # Main game interface
│ ├── index.tsx # React game logic
│ └── style.css # Game styling
├── shared/
│ └── types.ts # Shared types and utilities
└── README.md
- Interactive dice rolling animation
- Auto-Run Mode: 15-second automatic countdown with continuous number changes
- Real-time betting interface
- Score tracking
- Responsive design with TailwindCSS
- Clean, modern UI with animations
- Choose your bet: 7 Down, Lucky 7, or 7 Up
- Click "Roll Dice" to play
- Watch the dice animation
- See if you won based on the sum!
- Click "Start Auto Run (15s)" to enable automatic mode
- Place your bet (7 Down, Lucky 7, or 7 Up)
- Watch the dice numbers change automatically every second
- After 15 seconds, the dice will automatically roll and determine the result
- The process repeats automatically with the same bet
- Click "Stop Auto Run" to return to manual mode