/aoc2022

Advent of Code 2022 solved using GPT

Primary LanguagePython

Advent of Code 2022 GPT Solver

PSA: This was hacked together within a few hours, and hasn't been cleaned up.

Public GPT models at this point will likely not solve more than the first few days.

What this does:

  • Parse the puzzle html, with some reformatting
  • Build a prompt containing the puzzle description for all tasks so far (including their solutions)
  • Run the generated code with puzzle data and submit

A key point to make it able to solve part 2 is to provide the solution it wrote for part 1 (which at this point has been verified) in the prompt.

Special thanks to: