About

📷 The Game

The Advent of Time "Guess what time it is in Stockholm" game takes place from the 1st to the 25th of December.
Every day, a new picture will be unlocked. The picture will depict a location in Sweden.
Your goal is to guess the exact time of the day the picture was taken (HH:mm).
The closer your guess is to the actual time in the picture, the more points you will get.

🖼️ Pictures

The picture for any given day will always unlock at 6:00 a.m (CET / UTC+1).
The pictures are real photos that have been taken around Stockholm, Sweden. (and maybe some other locations)
Hints about the original date and location will be indicated below each picture.
Now, the hints may be unreliable most of the time. It's funnier that way, right?

🤔 Guessing

To guess, you need to pick a time slot (HH:mm) using the input box below the picture.
The site just takes the raw time (HH:mm) you submit, there is no time conversion going on.
Once you have made a guess, you cannot undo it, it's locked forever so think carefully before submitting.
Once your guess has been locked, you will receive points based on how close you are to the time when the picture was taken.
To learn more about how points are awarded, please refer to the 💯 Point system section.

💯 Point system

Points are awarded based on how close your guess is compared to the real time the picture was taken.
The following formula is used to calculate points:

Where:

⚠️ Important thing to note:

If the actual time of the picture is 01:00 and you guessed 23:00 it will be considered a 22 hours difference (not 2 hours!).
Keep that in mind before submitting your guesses.

🎁 Do we get anything for winning?

Maybe? Probably? I will see...

🚀 How much Quantum computing power is required to run this site?

This is pure HTML (with Handlebars), CSS and a tiny bit of vanilla JavaScript.
No framework, no bullshit. Entirely served by a rusty web server.
You can find all the source code for this webapp here. It's MIT-licensed.
The web server is a home-made and insecure implementation of HTTP 1.1: RTFW-http-rs
For the reverse-proxy, I picked Caddy because it is easy to configure and fast.

💀 Can I crash this site?

It should be fairly easy.
Especially given the fact that RTFW-http-rs is most likely (one of) the most insecure HTTP implementation in existence.
I would prefer if you DID NOT try to take down this instance, though.
I can't guarantee I will get the site back up right away and it might ruin the experience for other players.
If you want to experiment, feel free to try and self-host this yourself. It's all open-source, baby.

✨ Credits

Most pictures were taken by a good friend of mine who was visiting Sweden.
A huge thanks to him for providing a lot of quality pictures!

This game is heavily inspired by the Advent of Code in terms of UI and UX.
If you are a programmer, I highly recommend you to check it out, it's a great way to challenge yourself!

/home 