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

dcm31

testval5

Public
Like
testval5
Home
Code
2
README.md
H
pi_game.ts
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
/
README.md
Code
/
README.md
Search
5/15/2025
README.md

Pi Digit Challenge Game

A simple web-based game where players progress by typing the next digit of Pi.

How to Play

  1. The game starts with "3." (the beginning of Pi)
  2. Type the next digit of Pi in the input box
  3. If correct, you'll progress to the next digit
  4. If incorrect, you'll need to try again
  5. Your progress is saved automatically in your browser

Features

  • Progress tracking (saved in localStorage)
  • Visual progress bar
  • Immediate feedback on correct/incorrect inputs
  • Mobile-friendly design
  • Reset button to start over

Technical Details

  • Built with vanilla JavaScript and TailwindCSS
  • Stores the first 1000 digits of Pi
  • Runs as an HTTP-triggered Val on Val Town
  • No external dependencies or API calls required

Future Improvements

Potential enhancements for the future:

  • Add a timer/countdown mode
  • Implement a leaderboard
  • Add difficulty levels (e.g., time pressure)
  • Include visual celebrations for milestones
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
Open Source Pledge
Terms of usePrivacy policyAbuse contact
© 2025 Val Town, Inc.