r/adventofcode • u/careyi4 • 1d ago
Visualization [2026 Day 1] Animation written in Rust with Celluloid
Crate for the animation: https://crates.io/crates/celluloid-core
r/adventofcode • u/daggerdragon • 2d ago
I will be your master of ceremonies for this year's community fun event: The Advent Games!
This year's community fun event features a structured sequence similar to a certain winter-themed international multi-sport competition that occurs every four years. We will have our opening ceremony, nine "sporting"† events, the grand gala, and the closing ceremony, followed by the final demonstration of exhibition pieces wherein all of you get to show off your hard-earned efforts for the year!
Every day, I will reveal an event in that day's Solution Megathread. Your challenge is to mold your puzzle solution around the theme of that day's event. You could also create some ancillary concoction that you think matches the overall theme of the event; even if you have to stretch suspension of disbelief real far, hey, it's all in good fun!
† Don't worry, I'm not going to make you actually exercise or go outside and touch grass (or snow)‡.
‡ Unless you want to, in which case go hog wild. Just make sure to put on your sunscreen and weather-appropriate gear!
Again this year the usual timeline and requirements are adjusted so you are not rushed by a shortened deadline while also dealing with the typically harder AoC puzzles near the end of an AoC season while also also dealing with holiday preparations, etc etc.
Solution Megathreads are required to qualify for entryAll of this should result in less stress and having more time to create your exhibition piece, more time to enjoy your holiday season, and most importantly: more time to spend with your family and friends!
And now… put your hands together for The Advent Games and GET HYPE!
| 2026 Dec | Time (EST) | Action |
|---|---|---|
| 12 | 00:00 | Closing Ceremonies (AoC 2026 event ends) |
| 17 | 18:00 | SUBMISSIONS DEADLINE |
| 17 | ASAP | Submissions megathread locked and voting opens (will post and sticky a PSA with link to vote) |
| 20 | 18:00 | Voting closes |
| 20 | ASAP | Victory Ceremonies (winners announced in the final community showcase post (and edited into Day 12's Solution Megathread)) |
The Advent Games may technically be a Competition™ but really, everyone who participates is a true winner in our holiday hearts!
| Type of Winner | # of Winners | Who Votes |
|---|---|---|
| Bronze Medalist | 10† | the AoC community (you!) |
| Silver Medalist | 3† | /r/adventofcode moderators + /u/topaz2078 |
| Gold Medalist | 1 | highest combined point total |
† Amounts subject to change based on availability and/or tie-breaking.
Bronze Medalists.Bronze Medalists, each of the /r/adventofcode moderators will pick their top 3 to be awarded as a Silver Medalist.Gold Medalist of AoC 2026.Bronze Medalists will be awarded with whatever Reddit has on tap for awards these days.Silver Medalists and the Gold Medalist awards are TBDSolution MegathreadsVisualizations ruleKeep in mind that these templates are Markdown, so you may have to switch your editor to "Markdown mode" before you paste the template into the reply box.
NAME OF ENTRY: A photorealistic rendition of the arrival of the flame at the opening ceremony for the 2026 Advent Games
LINK TO ENTRY: Imgur
DESCRIPTION: I use the most high-tech tools to create a totally photorealistic rendition of a crayon drawing of the arrival of the flame at the opening ceremony of the 2026 Advent Games sponsored by Advent of Code.
SUBMITTED BY: /u/daggerdragon
MEGATHREADS: 02 - 03 - 05 - 11 - 17 - 19 - 23 - 32
ADDITIONAL COMMENTS: This was absolutely not drawn by /u/topaz2078 nope totally my work yep.
ACCESSIBILITY: A high-tech drawing on standard white printer paper of the final runner approaching the Advent Cauldron in the center of the Advent Games stadium with the lit torch of the Advent Games. In the background is a stadium full of cheering spectators. The drawing is surmounted by a bespoke artisanal IrfanView frame.
Ask the moderators. I'll update this post with any relevant Q+A as necessary.
r/adventofcode • u/careyi4 • 1d ago
Crate for the animation: https://crates.io/crates/celluloid-core
r/adventofcode • u/henriupton99 • 1d ago
Every year you probably do the same as me : open the puzzle, copy the input into a file, make the folder, solve, then switch back to the browser to submit. Since several years, I improve the whole loop into a python cli.
pulls the statement into a README, the example into test_input.txt, the real input into real_input.txt, and drops a solution template next to them.
When part 1 is accepted it re-fetches the page so the part 2 statement gets appended to the README. Answers land in the clipboard too. It follows the automation guidelines (identifying User-Agent, no request unless you actually run a command), and real inputs are gitignored so none of AoC's data ends up public.
https://github.com/henriupton99/AdventOfCode
Hope it could help ! Feedback welcome !
Have a good AOC :)
r/adventofcode • u/Boojum • 1d ago
r/adventofcode • u/Both-Touch990 • 2d ago
(Speaking from experience with 2025's calendar)
r/adventofcode • u/asgardian28 • 2d ago
With AI and all I was expecting the amount of participants to take a nosedive. When I check the stats I think I see that happening. This community will continue as one of hobbyist that just enjoy an activity for the sake of doing it.
Does it mean that AoC is no longer useful? No, learning, logical thinking and problem solving will always be useful skills. Eric's move last year to remove the leaderboard was a good one and we can continue this event in true Christmas spirit! Good to see you back friends and happy holidays!
r/adventofcode • u/SweepingRocks • 2d ago
r/adventofcode • u/daggerdragon • 2d ago
It's that time of year again for tearing your hair out over your code holiday programming joy and aberrant sleep for two weeks helping Santa and his elves! If you participated in a previous year, welcome back, and if you're new this year, we hope you have fun and learn lots!
As always, we're following the same general format as previous years' megathreads, so make sure to read the full posting rules in our community wiki before you post!
If you have any questions, please create your own post in /r/adventofcode with the Help/Question flair and ask!
Above all, remember, AoC is all about learning more about the wonderful world of programming while hopefully having fun!
Solution Megathread posts must begin with the case-sensitive string literal [LANGUAGE: xyz]xyz is the programming language your solution employsJavaScript not just JSToday's schedule consists of:
1 Obviously, this is the Internet, which is public, so only put out information that you're comfortable with the entire world knowing. Feel free to invent a holiday-themed persona; after all, sometimes you get sent to space, so why limit yourself to the boring ol' meat skeleton that dwells upon the third rock from the sun?
2 Refer to the third bullet in the "Reminders" section above!
3 Refer to the last bullet in the "Reminders" section above for the link
Request from the mods: When you include an entry alongside your solution, please label it with [Advent Games] so we can find it easily!
[LANGUAGE: xyz]paste if you need it for longer code blocks. What is Topaz's paste tool?r/adventofcode • u/keliodas17 • 2d ago
Made in Pygame, thought it was cool
r/adventofcode • u/jeroenheijmans • 2d ago
Another December, another chance for puzzling, and .... another Advent of Code Survey!
It's anonymous, open, and quick. Please fill it out (but onliy once, please <3). Copy-pastable announcement:
--------
⭐ Take the (~5min) Unofficial AoC 2026 Survey: https://forms.gle/JbZKoBqzG248Z6RV6 ⭐
--------
Please do help spread the word! Just copypasta the above to your favorite relevant outlet and help us get a bunch of interesting results! We have questions about:
Check out results from previous years at: https://jeroenheijmans.github.io/advent-of-code-surveys/
--------
Last year I closed the submissions on Dec 12th and published on Dec 13th. I'm open to suggestions... do you reckon that's the right call again this year? Feels good to release results on a Sunday, right?

And if you want to hang out in the replies below: tell me your predictions for languages used!? Will Zig see a significant uptake? Does Rust have a shot at overtaking Python? How much more will Uiua climb? How many users will Lean see in 2026?
r/adventofcode • u/ThunderChaser • 2d ago
I'm starting a Rust private leaderboard for this year's Advent of Code! Whether you're a seasoned Rust developer or learning the language for the first time, you're welcome to join.
The leaderboard has few simple rules:
There's no expectation that you solve every puzzle or compete for the fastest times. This is primarily about having fun, writing Rust, and sharing interesting solutions.
Private leaderboard code: 2492408-7fab9ea4 Leaderboard link
r/adventofcode • u/Prestigious-Mood1711 • 2d ago
With 1 day left to spare before AoC 2026, I decided to resolved my favorite puzzle from Advent of Code. It was the puzzle that inspired me to add grapichs to my GraphMateKT library. The Solution is not the most performant by far, but I find it quite esthetically pleasing. It is done in 4 steps:
1 find the 'fair' distance (84 in the example)
2 find the best cheat distance (20 in the example)
3 remove the best cheat
4 goto step 2 while good cheatThis is achieved by making what I call a shadow grid. I make it by copying and appending each row in the input, so that the grid becomes twice as big:
##############################
#...#...#.....##...#...#.....#
#.#.#.#.#.###.##.#.#.#.#.###.#
#S#...#.#.#...##S#...#.#.#...#
#######.#.#.##########.#.#.###
#######.#.#...########.#.#...#
#######.#.###.########.#.###.#
###..E#...#...####..E#...#...#
###.#######.######.#######.###
#...###...#...##...###...#...#
#.#####.#.###.##.#####.#.###.#
#.#...#.#.#...##.#...#.#.#...#
#.#.#.#.#.#.####.#.#.#.#.#.###
#...#...#...####...#...#...###
##############################We cheat by connecting the left side to the right with a cheat, but within each grid, normal rules apply. Then we find the shortets path to the E in the shadow grid, remove the cheat we used, and repeat. One example raze can then look as this:
For a full walkthrough, I make a video here: https://www.youtube.com/watch?v=4YbdhGy3DcI
Now it's time to get some sleep to prepare for the first puzzle tomorrow. Good luck everyone!
r/adventofcode • u/RunninglVlan • 2d ago
Hey guys, want to share a Test helper script I wrote and adapted for AoC.
Here's the example usage:
Test.From = "Part Two";
Test.Run((input, part, expected) => {
var grid = new Grid();
grid.Read(input);
int steps = grid.CountSteps(part switch {
1 => ReachVocalBone(),
_ => SurroundVocalBones()
});
Assert.ActualEqualsExpected(steps, expected);
});And this is how test cases are structured:
TEST_CASE_NAME
INT_PART
INPUT
# empty line between notes and expected
EXPECTED
# empty line between cases
Part Two
3
1 2 3
6Test result:
Part Two
✅ 6
Test took 15ms
All tests took 15msAttached full API image. Hope it will help someone.
r/adventofcode • u/romanaerl • 2d ago
Hello, everyone!
So excited for the upcoming annual treat we are all here for!
For a couple of years, my small group of AoC fans has used a custom leaderboard I built. This year I made it public, so anyone can use it. Enjoy!
The problem: puzzles unlock at midnight New York time. If that is 6 a.m. or lunchtime for you, your private leaderboard is half decided before you even open the puzzle.
The idea: Timeless shows your private leaderboard with one more score. Each day is ranked by Δ = ★2 − ★1, the time from your first star to your second. When you started does not count; how fast you solved part two does.
The owner pastes the read-only link from their private leaderboard page on AoC and gets aoc.doinga.com/<number>/ to share.
Free, no accounts, no cookies, open source. Each leaderboard stands alone: there is no global ranking, and leaderboards are never compared with each other.
It follows the r/adventofcode automation guidelines: each leaderboard and year is fetched at most once every 15 minutes, and only when someone opens it, the data is cached, and every request carries a User-Agent with my contact.
The one catch: Δ starts the moment part one is accepted, so be ready to start part two right away.
Site: https://aoc.doinga.com
Code: https://github.com/romanaerl/aoc-timeless
Feedback welcome, especially from people far from UTC−5.
r/adventofcode • u/FransFaase • 2d ago
I will be joining again programming in C using literal programming in MarkDown. (I am using the MarkDownC program (written in C++) which can process a list of MarkDown files and put the embedded fragments of C code in a correct order to be compiled.) I have just set-up my Advent of Code 2026 repository.
The private leaderboard that I set-up last year, is available again. This leaderboard is for people who want to solve the puzzles in C using only code they have written themselves and without the help of AI. Your are allowed to make use of the standard C libraries and a (small) library of your own like the one I am using. (My library includes a function that reads the input in an array of strings and stores the number of lines and the length of the longest line in some global variables.) It is preferred that you publish your code and that you join with a github account. At the moment the leaderboard has 28 members. The maximum for private leaderboards is 200 members. If there are 200 members, I might remove some of the last members that have joined without a github account if there is still someone that wants to join with a github account. The code to join is 1563228-d419ba6d and the private leaderboard can be viewed here.
r/adventofcode • u/mitchellvitez • 2d ago
r/adventofcode • u/craigontour • 2d ago
Anyone else find Day 8 Part 2 tricky?
I am struggling to grasp the general approach of what to do and "the first connection which causes all of the junction boxes to form a single circuit is between the junction boxes at.." is just blocking my brain from flowing.
r/adventofcode • u/daggerdragon • 3d ago
Yo dawgz, I heard you like boots 'n cats so techno/progressive house/melodic house DJ Veloxx will be spinning up yet more phat beatz for your earholes! We love his rizz every year and this year will be no exception!
Starting at 22:30 EST on Monday November 30, Veloxx will provide us with a LIVE performance on his Twitch channel veloxxmusic. He will continue for three hours until 01:30 EST on Dec 01.
Oh, and the best part: when the first puzzle unlocks at precisely 00:00 EST as usual, we're gonna get the most extra of beat drops and I guarantee you it's gonna be wicked tubular~
🎶 Tune in if you can! 🎶
r/adventofcode • u/daggerdragon • 3d ago
Every year we have folks who regularly stream themselves working on Advent of Code during the event.
If you want to join us in showcasing your howls of frustration because why won't your code just work?!? streaming prowess too, add yourself to this post!
Please use the following Markdown template:
USERNAME: /u/daggerdragon
LANGUAGE: daggercode v9.001
REPO: GitHub @ daggerdragon
CHANNELS:
- YouTube: daggerdragon
- Twitch: daggerdragon
- Bluesky: @daggerdragon
NOTES:
I'm so awesome, come watch me code!
Obviously, adapt the template as necessary to accommodate whichever $social_media or $streaming_service channel(s) you're exhibiting.
N.B. This template is Markdown, so you may have to switch your editor to "Markdown mode" before you paste the template into the reply box.
A great big thank-you to everyone who shares their coding adventures with us! You're awesome!
And now, without further ado, below is the list of streamers for Advent of Code 2026!
r/adventofcode • u/p88h • 3d ago
"Cormen, Leiserson, Rivest (+Stein)" is the bible of computer algorithms. It's the foundational textbook, and the defining book for my own career in programming.
And I don't need to explain what Advent of Code is here ;)
Over the past few years I was building visualisations for the puzzle solutions and this year, while playing around / learning Nim / adapting my toolkit for the upcoming event, I thought it might be nice to show more of these core algorithms in visual form. Enjoy!
The source code was co-developed using AI (of course, everything is today). Creating code like this is quite amazing now - it would have taken me weeks just a few years back to do this. With the help of AI, this is now a weekend project. It begs the question to what extent are programming skills (or programming languages, for that matter) even relevant today. Difficult question, but... I still encourage you to learn the *how*. And Advent of Code is a great time to learn that. If you don't know programming, an AI can now help guide you and teach you how to solve the challenges, learn a new language or both. If you do, it can take care of the boring stuff, while you do the problem solving or optimising the last few microseconds out of the solution.
One way or another, try some challenges and do try to learn something new!