All projects

Doomsday Drill

Web, 2026

A practice page for working out the weekday of any date in your head.

The story

I picked up John Conway's Doomsday rule from an It's Okay to be Smart video, and now I can tell you that July 4, 1776 was a Thursday. The math is short once the anchors are memorized, but it only gets quick with practice, so I built a way to practice. The page deals you a random date, you work out the weekday in your head, and you hit reveal when you think you have it. It keeps a running tally, a streak and a timer so you can see whether you're getting faster, and the month and century anchors sit in a cheatsheet right under the card for when they haven't stuck yet.

What I learned

  1. The whole method comes down to three numbers: the century anchor, the year offset, and the doomsday date for the month.
  2. You reveal the answer and then say whether you got it, since the honor system is the only way to grade math you did in your head.
  3. Weekdays are easy to get wrong across timezones, so every date is built in UTC and never slips a day based on where you open the page.
  4. Practice only works if going again is instant, so the whole loop runs on the keyboard: space to reveal, then y or n.
  5. Your stats save in the browser, which is all the backend a practice tool needs.

What it’s built with

Frontend

  • Next.js 14
  • TypeScript
  • Tailwind CSS
  • UTC date math

Storage

  • localStorage

Hosting

  • Vercel

If you want the longer version of this one, email me.

Next projectSpring Break Voting APIAPI, 2026