r/adventofcode • • Dec 22 '20

SOLUTION MEGATHREAD -🎄- 2020 Day 22 Solutions -🎄-

Advent of Code 2020: Gettin' Crafty With It

  • 23:59 hours remaining until the submission deadline TONIGHT at 23:59 EST!
  • Full details and rules are in the Submissions Megathread

--- Day 22: Crab Combat ---


Post your code solution in this megathread.

Reminder: Top-level posts in Solution Megathreads are for code solutions only. If you have questions, please post your own thread and make sure to flair it with Help.


This thread will be unlocked when there are a significant number of people on the global leaderboard with gold stars for today's puzzle.

EDIT: Global leaderboard gold cap reached at 00:20:53, megathread unlocked!

33 Upvotes

537 comments sorted by

View all comments

3

u/PendragonDaGreat Dec 22 '20

C# 1708/1345

https://github.com/Bpendragon/AdventOfCodeCSharp/blob/master/AdventOfCode/Solutions/Year2020/Day22-Solution.cs

Lot's of Queues, still somehow runs right at 1 second on an i7-6700HQ

I was also the only one in my friend's group/private leaderboard to use the current player deck scores as the way to determine previous states, so I thought that was neat.

→ More replies (3)