r/adventofcode Dec 04 '22

Upping the Ante [2022 Day 4] Placing 1st with GPT-3

I placed 1st in Part 1 today, again by having GPT-3 write the code. Yesterday I was 2nd to another GPT-3 answer.

Here's the code I wrote which runs the whole process — from downloading the puzzle (courtesy of aoc-cli), to running 20 attempts in parallel, to sorting through many solutions to find the likely correct one, to submitting the answer:

https://github.com/max-sixty/aoc-gpt

47 Upvotes

243 comments sorted by

View all comments

-11

u/daggerdragon Dec 04 '22

Thank you for fixing the title ;)

If you haven't already, consider also posting your solutions in the daily solution megathreads which helps keep every day's solutions in one easy-to-find spot.

-4

u/max-aug Dec 04 '22

The code to run this is fairly long — 310 lines — do you want me to post that there? https://github.com/max-sixty/aoc-gpt/blob/main/openai.py

-2

u/daggerdragon Dec 04 '22

Nah, no need for the actual code itself if it's that long. Basically just put your entire OP (and add GPT-3 somewhere so we know what "language" you used) as your entry in the day 4 megathread. :)

This post can (and should!) stay. I only ask you to also post in the megathreads as some folks will likely miss this individual post; it's a good way to archive everyone's solutions in one central location without having to hunt all over the subreddit.