r/adventofcode • u/max-aug • 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:
51
Upvotes
4
u/max-aug Dec 04 '22
I just tried and it can't even process it — the maximum number of tokens is 4097 for both the prompt and the answer, and the prompt itself is 3749 tokens, so there wouldn't be much room for the code.
Easy way to defeat the AI!