{"id":23181141,"url":"https://github.com/joeshaw/advent2022","last_synced_at":"2025-04-05T03:14:08.261Z","repository":{"id":64279774,"uuid":"574701756","full_name":"joeshaw/advent2022","owner":"joeshaw","description":"Advent of Code 2022. Using ChatGPT to generate solutions.","archived":false,"fork":false,"pushed_at":"2023-01-24T19:23:15.000Z","size":731,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-02-10T11:14:55.361Z","etag":null,"topics":["advent-of-code","advent-of-code-2022","chatgpt"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/joeshaw.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2022-12-05T22:22:49.000Z","updated_at":"2024-04-20T19:12:44.000Z","dependencies_parsed_at":"2023-02-14T00:40:25.418Z","dependency_job_id":null,"html_url":"https://github.com/joeshaw/advent2022","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/joeshaw%2Fadvent2022","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/joeshaw%2Fadvent2022/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/joeshaw%2Fadvent2022/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/joeshaw%2Fadvent2022/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/joeshaw","download_url":"https://codeload.github.com/joeshaw/advent2022/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247280268,"owners_count":20912967,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["advent-of-code","advent-of-code-2022","chatgpt"],"created_at":"2024-12-18T08:14:40.647Z","updated_at":"2025-04-05T03:14:08.242Z","avatar_url":"https://github.com/joeshaw.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"Exercises from the [2022 Advent of Code](https://adventofcode.com/2022).\n\nThis year I decided to try something different: prompt [ChatGPT](https://openai.com/blog/chatgpt/) to generate programs that solve the puzzles.\n\nMy prompts generally give a short preamble, like:\n\n\u003e Advent of Code is a Christmas-themed series of programming puzzles.  Each day there are two parts to a puzzle, with the second part building upon the first one.  I will provide you with the prompt for the first part.  I want you to generate a complete program in Go, Rust, or Python to solve the puzzle.  The program should read its input from a file named `input.txt`.\n\nand then provide the puzzle text verbatim.\n\nSometimes this is enough to generate a working solution on the first try or after a couple of retries.  Other times, I have to provide more hints.\n\nIn each directory there is a README that gives some commentary, the prompt I provided, and the response ChatGPT generated.  Also in that directory is the (completely unmodified!) working code and the input file provided with the puzzle.\n\nWe'll see how far I get with this.\n\n**Update**: I made it 6 days.  On day 7, ChatGPT wasn't able to generate enough code with its limited runtime budget to solve the problem, although the code was directionally correct.  After trying for a few days (and waiting out overloaded servers), I gave up.  It was fun though!\n\n![](chatgpt.png)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjoeshaw%2Fadvent2022","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjoeshaw%2Fadvent2022","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjoeshaw%2Fadvent2022/lists"}