27
\$\begingroup\$

Originally from caird coinheringaahing's idea, I thought about how we could do it this year with such a short time before December, and I decided to gather some ideas from previous AoC events. (There's an explicit permission from Eric Wastl, the one who runs the AoC event.)

As I found 25 potentially good challenge ideas from previous AoC events (2015-2020), I'm running the Advent of Code Golf (AoCG) this year. On each day between Dec 1st and Dec 25th (inclusive), a new challenge will be posted at UTC midnight. It is a free-for-all and just-have-fun-by-participation event, no leaderboards and no prizes for solving them fast or solving them in the shortest code. But, if the event goes well, I will hand out a few bounties to the most active participants, based on various measures.

For the posting schedule: I expect myself to be unavailable on weekends, and I might have problems on other days too. I'll post the challenges when I can at around UTC midnight, but if a new challenge doesn't go live for an hour, or on weekends, anyone else is free to move that day's challenge to main instead. Please don't post it as Community Wiki though (it causes all answers to be CW too). You can take some extra rep as a bonus for helping me run the event :D

Event challenges


This post serves as the announcement of AoCG 2021, but it is also a public sandbox of challenges that will be used for the event. I will write up the 25 challenges for feedback here. If you have another idea (specifically related to previous AoC problems), feel free to post it; we will refine it together and line up the posting schedule accordingly, in case we have to throw away some existing ideas.

Note to those who are opposed to the AoCG being AoC-G instead of Ao-CG: I don't have any intention to make the event an AoC-G. I simply saw AoC as a good source of challenges to quickly draw ideas from (I'd totally agree with using sandbox gems if we had much more time than ~2 weeks before December), and the majority of challenges will be quite different from what you see on the AoC.

\$\endgroup\$
0

25 Answers 25

6
\$\begingroup\$

AoCG2021 Day 4: Infinite Elves and infinite houses 2

\$\endgroup\$
4
\$\begingroup\$

AoCG2021 Day 1: Automated delivery frenzy

\$\endgroup\$
4
  • 1
    \$\begingroup\$ Can we instead output the total number of santas? \$\endgroup\$
    – emanresu A
    Commented Nov 19, 2021 at 8:52
  • 1
    \$\begingroup\$ It's worth mentioning that each instruction moves them exactly 1 square, since I was confused by that at first. \$\endgroup\$
    – Wheat Wizard Mod
    Commented Nov 19, 2021 at 13:56
  • \$\begingroup\$ I can has more test cases? \$\endgroup\$
    – alephalpha
    Commented Nov 23, 2021 at 1:29
  • 1
    \$\begingroup\$ Problem changed to total number of santas. Added a mention of moving to "neighboring house". Test cases added. \$\endgroup\$
    – Bubbler
    Commented Nov 23, 2021 at 2:16
4
\$\begingroup\$

AoCG2021 Day 16: Interpret Duet

\$\endgroup\$
5
  • \$\begingroup\$ The 34th line in the second example is jgz 1 3. But X should be a register in jgz X Y. \$\endgroup\$
    – alephalpha
    Commented Nov 28, 2021 at 12:45
  • 1
    \$\begingroup\$ @alephalpha Changed the description to allow constants in the first argument of jgz. \$\endgroup\$
    – Bubbler
    Commented Nov 29, 2021 at 1:02
  • \$\begingroup\$ Tempted to answer this in Go or something... lol \$\endgroup\$
    – pxeger
    Commented Dec 2, 2021 at 17:57
  • \$\begingroup\$ "Y and Z can be a register or a constant" - constants are only integers, and can be negative, I assume? Could you specify that? \$\endgroup\$
    – pxeger
    Commented Dec 15, 2021 at 2:37
  • \$\begingroup\$ @pxeger Fixed, thanks. \$\endgroup\$
    – Bubbler
    Commented Dec 15, 2021 at 2:42
3
\$\begingroup\$

AoCG2021 Day 17: Langton's Hexa-Virus

\$\endgroup\$
3
\$\begingroup\$

AoCG2021 Day 25: Stitching maps together

\$\endgroup\$
1
  • 4
    \$\begingroup\$ Not this again... \$\endgroup\$
    – emanresu A
    Commented Nov 30, 2021 at 8:30
2
\$\begingroup\$

AoCG2021 Day 2: Naughty or nice?

\$\endgroup\$
2
\$\begingroup\$

AoCG2021 Day 3: Say-Look-Say

\$\endgroup\$
1
  • \$\begingroup\$ "Be sure to handle multi-digit numbers that appear since iteration 7." - I believe this means we need to output [..., 1, 1, 3, 1, 3, 4, 1, ...] not [..., 1, 13, 1, 34, 1, ...] (for iteration 8), but it took me a while to work that out based on the test-cases. Do you think there's any way you could clarify that? \$\endgroup\$
    – pxeger
    Commented Dec 2, 2021 at 16:15
2
\$\begingroup\$

AoCG2021 Day 14: Adjusting dancing program's period

\$\endgroup\$
2
\$\begingroup\$

AoCG2021 Day 15: Leapfrog Santa

\$\endgroup\$
0
2
\$\begingroup\$

AoCG2021 Day 21: Blinking through the forest

\$\endgroup\$
2
  • \$\begingroup\$ Can we take the rational number as [numerator, denominator]? Can we assume the rational will always be in reduced form? \$\endgroup\$
    – emanresu A
    Commented Nov 29, 2021 at 10:29
  • \$\begingroup\$ @emanresuA Yes, as indicated in the last line of the Input. \$\endgroup\$
    – Bubbler
    Commented Nov 29, 2021 at 23:22
2
\$\begingroup\$

AoCG2021 Day 22: Hyperbolic rescue

\$\endgroup\$
3
  • \$\begingroup\$ Thanks for your challenge ideas. I decided to discard the remaining three in my list and use all of yours instead. What is your opinion about the challenge order? Is it OK to shuffle the challenges around so that consecutive challenges look less repetitive? \$\endgroup\$
    – Bubbler
    Commented Nov 30, 2021 at 7:49
  • \$\begingroup\$ @Bubbler Sure. However I still had had one or two more ideas to write up as part 2s, I was thinking I would still have a little bit of time, so I'm not sure when exactly those might get posted. \$\endgroup\$
    – Wheat Wizard Mod
    Commented Nov 30, 2021 at 9:07
  • \$\begingroup\$ If you can write up more challenges, please go ahead. I think it would be better if we can avoid three copies of day 1s for a more interesting one. You can do whatever you want for the leftover(s). \$\endgroup\$
    – Bubbler
    Commented Nov 30, 2021 at 10:10
2
\$\begingroup\$

AoCG2021 Day 24: Is the bus company cheating?

\$\endgroup\$
1
\$\begingroup\$

AoCG Day 5: Balancing sleigh with lots of trunks

\$\endgroup\$
1
\$\begingroup\$

AoCG2021 Day 6: Taxicab in a triangular city

\$\endgroup\$
1
\$\begingroup\$

AoCG2021 Day 7: Bathroom security goes wild

\$\endgroup\$
2
  • \$\begingroup\$ It's not clear without looking at the example that you start at 0. Also, while this is interesting as a programming problem, I'm not sure how good it will be for golf because the lookup table is just going to be copied from whoever finds the optimal one first, and the rest of the challenge just applies several layers of boring loops. \$\endgroup\$
    – pxeger
    Commented Dec 5, 2021 at 20:56
  • 1
    \$\begingroup\$ @pxeger Fixed the description. I understand your concern, but trying to replace it with another challenge idea is IMO risky at this point. \$\endgroup\$
    – Bubbler
    Commented Dec 5, 2021 at 23:25
1
\$\begingroup\$

AoCG2021 Day 8: Delivery Corrections

\$\endgroup\$
1
\$\begingroup\$

AoCG2021 Day 9: Spiral memory stress test

\$\endgroup\$
1
\$\begingroup\$

AoCG2021 Day 10: Memory reallocation routine

\$\endgroup\$
1
\$\begingroup\$

AoCG2021 Day 11: Garbageful streams

\$\endgroup\$
4
  • \$\begingroup\$ The outmost group in the last example is not closed. The first { does not have a corresponding }. \$\endgroup\$
    – alephalpha
    Commented Nov 26, 2021 at 2:10
  • 1
    \$\begingroup\$ @alephalpha Thanks, fixed. \$\endgroup\$
    – Bubbler
    Commented Nov 26, 2021 at 6:46
  • \$\begingroup\$ What is the meaning of the {{!{ at the start of the last test-case? As far as I can tell, the rules should prohibit a ! from being inside a group without being inside garbage. \$\endgroup\$
    – pxeger
    Commented Nov 30, 2021 at 12:33
  • 1
    \$\begingroup\$ @pxeger Oh, I misread the AoC spec myself and thought ! can cancel anything anywhere. Fixed now. \$\endgroup\$
    – Bubbler
    Commented Nov 30, 2021 at 23:20
1
\$\begingroup\$

AoCG2021 Day 12: Oct's Fool

\$\endgroup\$
1
\$\begingroup\$

AoCG2021 Day 13: Defrag in action!

\$\endgroup\$
1
\$\begingroup\$

AoCG2021 Day 19: To Hire or To Fire

\$\endgroup\$
1
\$\begingroup\$

AoCG2021 Day 18: Stripping strips

\$\endgroup\$
1
\$\begingroup\$

AoCG2021 Day 20: Wonky license check

\$\endgroup\$
1
\$\begingroup\$

AoCG2021 Day 23: Finding the best seat

\$\endgroup\$

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .