ostwilkens / aoc2022

Advent of Code 2022 solved using GPT

Home Page:https://twitter.com/ostwilkens/status/1598458146187628544

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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:

About

Advent of Code 2022 solved using GPT

https://twitter.com/ostwilkens/status/1598458146187628544


Languages

Language:Python 100.0%