FeaturesTemplatesShowcaseTownie
AI
BlogDocsPricing
Log inSign up
karfau

karfau

aocXX_00

Public
Like
2
aocXX_00
Home
Code
2
README.md
main.tsx
Branches
1
Pull requests
Remixes
6
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
README.md

This is a great template if you want to solve the https://adventofcode.com puzzles in a TDD style:

  1. dump your puzzle input into the input function
  2. copy/paste sample input and output from the page
  3. once all assertions pass, the solution is calculated

There is one function for each star that can be achieved.

Some helpers for common tasks are defined at the end of code: debug, toInt, exctractNumbers, sum, ... ?

PS: Did you know advent of code goes as far back as 2015 and you can still solve those puzzles?

Migrated from folder: adventofcode/aocXX_00

Code
README.mdmain.tsx
FeaturesVersion controlCode intelligenceCLI
Use cases
TeamsAI agentsSlackGTM
ExploreDocsShowcaseTemplatesNewestTrendingAPI examplesNPM packages
PricingNewsletterBlogAboutCareersBrandhi@val.townStatus
X (Twitter)
Discord community
GitHub discussions
YouTube channel
Bluesky
Terms of usePrivacy policyAbuse contact
© 2025 Val Town, Inc.