• Townie
    AI
  • Blog
  • Docs
  • Pricing
  • We’re hiring!
Log inSign up
Ral

Ral

Paresh

Public
Like
Paresh
Home
Code
4
backend
1
frontend
3
shared
1
README.md
Branches
1
Pull requests
Remixes
History
Environment variables
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.
Sign up now
Code
/
Code
/
Search
index.ts
https://Ral--bdcb5f9a37f311f093509e149126039e.web.val.run
README.md

3 Die 7 Up 7 Down Game

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)

Game Rules

  • 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

Project Structure

├── 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

Features

  • 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

How to Play

Manual Mode

  1. Choose your bet: 7 Down, Lucky 7, or 7 Up
  2. Click "Roll Dice" to play
  3. Watch the dice animation
  4. See if you won based on the sum!

Auto-Run Mode

  1. Click "Start Auto Run (15s)" to enable automatic mode
  2. Place your bet (7 Down, Lucky 7, or 7 Up)
  3. Watch the dice numbers change automatically every second
  4. After 15 seconds, the dice will automatically roll and determine the result
  5. The process repeats automatically with the same bet
  6. Click "Stop Auto Run" to return to manual mode
HTTP
  • index.ts
    Ral--bd…9e.web.val.run
Code
backendfrontendsharedREADME.md
FeaturesVersion controlCode intelligenceCLI
Use cases
TeamsAI agentsSlackGTM
DocsShowcaseTemplatesNewestTrendingAPI examplesNPM packages
PricingNewsletterBlogAboutCareers
We’re hiring!
Brandhi@val.townStatus
X (Twitter)
Discord community
GitHub discussions
YouTube channel
Bluesky
Terms of usePrivacy policyAbuse contact
© 2025 Val Town, Inc.