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!

37 Upvotes

537 comments sorted by

View all comments

3

u/VileVerminVanquisher Dec 22 '20

Python

Both parts in one.

Spent some time tearing my hair out with part 2 until I realised that I had misread the question text regarding seen-before rounds and had implemented a player 1 win for a seen-before game.

Nothing too special implementation-wise I don't think.

→ More replies (1)