Advent of Code on Replit

Ornella Altunyan

It’s the most wonderful time of the year: Advent of Code! Advent of Code is a month-long programming challenge with a new daily puzzle you can solve in any programming language.

For many, Advent of Code is an excuse to learn a new programming language or practice a familiar one. No matter what programming language you choose to tackle the puzzles in, Replit is the easiest way to run your code. Here’s your guide to using Replit for AoC.

Why choose Replit for Advent of Code

  • Replit requires no installation or setup to get started with any language. Just select the language template and start coding directly in your browser. It supports most languages, from Python to Haskell, and even esoteric ones like LOLCODE.
  • Execute your code using the Run button, or the built-in Shell. When you’re finished writing your code, check the output of your program quickly in the Console.
  • If you get stuck, you can use the Multiplayer feature to share your code with a friend and ask for help.
  • You can also use the built-in Debugging tools, including Replit AI, to step through your code and solve any errors. Note that AoC has special guidelines for using AI – you can learn more in their official FAQ.

Getting started with Replit

To get started, create a new Repl using the language template of your choice. Select from the list below, select Fork, and name your project.

Forking a template on Replit

You can even try a daily challenge in multiple languages, or use a different language each day of the challenge.

Here are some popular language templates:

The full list of language templates can be found here. If you’re looking for a specific language that you don’t see, you can always start with a Blank Repl and manually configure it using Nix.

If you want your work hidden from the public, you’ll need to become a Replit Core member to make your Repls private.

Get support

Whether you’re a seasoned developer or just starting out, Replit is an all-purpose tool for your AoC journey. Experiment with different languages, challenge yourself, and most importantly, have fun!

If you get stuck, check out the Ask Forum, where a Replit community or staff member will help you. You can also get support on the official Advent of Code subreddit.

Happy holidays and happy coding!

More blog posts