testval5
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.
pi_game.ts
https://dcm31--6a119b3e31af11f095df569c3dd06744.web.val.run
A simple web-based game where players progress by typing the next digit of Pi.
- The game starts with "3." (the beginning of Pi)
- Type the next digit of Pi in the input box
- If correct, you'll progress to the next digit
- If incorrect, you'll need to try again
- Your progress is saved automatically in your browser
- Progress tracking (saved in localStorage)
- Visual progress bar
- Immediate feedback on correct/incorrect inputs
- Mobile-friendly design
- Reset button to start over
- 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
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