{"id":18288323,"url":"https://github.com/gereleth/adventofcode2022","last_synced_at":"2025-07-04T03:32:54.365Z","repository":{"id":171387810,"uuid":"581315866","full_name":"gereleth/AdventOfCode2022","owner":"gereleth","description":"My python solutions to AdventOfCode 2022 tasks","archived":false,"fork":false,"pushed_at":"2023-02-11T13:34:07.000Z","size":1042,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-15T01:27:32.215Z","etag":null,"topics":["advent-of-code","advent-of-code-2022","animation","matplotlib","matplotlib-animation","python","visualization"],"latest_commit_sha":null,"homepage":"","language":"Python","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/gereleth.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-12-22T21:07:44.000Z","updated_at":"2023-02-09T21:45:43.000Z","dependencies_parsed_at":null,"dependency_job_id":"12c2c220-1443-41f9-90ff-9ba00f63717b","html_url":"https://github.com/gereleth/AdventOfCode2022","commit_stats":null,"previous_names":["gereleth/adventofcode2022"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gereleth%2FAdventOfCode2022","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gereleth%2FAdventOfCode2022/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gereleth%2FAdventOfCode2022/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gereleth%2FAdventOfCode2022/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/gereleth","download_url":"https://codeload.github.com/gereleth/AdventOfCode2022/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247994122,"owners_count":21030049,"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","animation","matplotlib","matplotlib-animation","python","visualization"],"created_at":"2024-11-05T13:35:04.274Z","updated_at":"2025-04-09T07:12:13.933Z","avatar_url":"https://github.com/gereleth.png","language":"Python","readme":"# Advent of Code 2022\n\nMy python solutions for all days of [Advent Of Code 2022](https://adventofcode.com/2022).\n\n## Prerequisites\n\nI ran this code on python 3.10.8. It might work on other python 3 versions too.\n\nCreate a virtual environment and install dependencies.\n\n```\npython -m venv venv\nsource venv/bin/activate\npip install -r requirements.txt\n```\n\n## Layout\n\nCode for each day is in `src/day{i}.py`.\n\nInputs for each day are in `inputs/day{i}/test.txt` and `inputs/day{i}/task.txt`.\n\n## Usage\n\nSolve all tasks:\n\n```bash\npython src/solve.py\n```\n\nSolve particular day:\n\n```bash\npython src/solve.py --day {day}\n```\n\nOther options:\n\n- `--test` - run on test input\n- `--day {day} --input {filepath}` - run on a specified input file\n\n## Animations\n\nSome days include code to produce matplotlib animations illustrating the solution.\n\nYou can see them by running\n\n```bash\npython src/dayX.py\n```\n\n\u003ctable\u003e\n    \u003ctr\u003e\n        \u003ctd\u003e\n            \u003ch3\u003e\u003ca href=\"src/day8.py\"\u003eDay 8\u003c/a\u003e\u003c/h3\u003e\n            \u003ca href=\"outputs/day8.png\"\u003e\u003cimg src=\"outputs/day8.png\" height=\"200\"\u003e\u003c/a\u003e\n        \u003c/td\u003e\n        \u003ctd\u003e\n            \u003ch3\u003e\u003ca href=\"src/day9.py\"\u003eDay 9\u003c/a\u003e\u003c/h3\u003e\n            \u003ca href=\"outputs/day9.png\"\u003e\u003cimg src=\"outputs/day9.png\" height=\"200\"\u003e\u003c/a\u003e\n        \u003c/td\u003e\n        \u003ctd\u003e\n            \u003ch3\u003e\u003ca href=\"src/day10.py\"\u003eDay 10\u003c/a\u003e\u003c/h3\u003e\n            \u003ca href=\"outputs/day10.png\"\u003e\u003cimg src=\"outputs/day10.png\" height=\"200\"\u003e\u003c/a\u003e\n        \u003c/td\u003e\n    \u003c/tr\u003e\n    \u003ctr\u003e\n        \u003ctd\u003e\n            \u003ch3\u003e\u003ca href=\"src/day12.py\"\u003eDay 12\u003c/a\u003e\u003c/h3\u003e\n            \u003ca href=\"outputs/day12.png\"\u003e\u003cimg src=\"outputs/day12.png\" height=\"200\"\u003e\u003c/a\u003e\n        \u003c/td\u003e\n        \u003ctd\u003e\n            \u003ch3\u003e\u003ca href=\"src/day14.py\"\u003eDay 14\u003c/a\u003e\u003c/h3\u003e\n            \u003ca href=\"outputs/day14.png\"\u003e\u003cimg src=\"outputs/day14.png\" height=\"200\"\u003e\u003c/a\u003e\n        \u003c/td\u003e\n        \u003ctd\u003e\n            \u003ch3\u003e\u003ca href=\"src/day22.py\"\u003eDay 22\u003c/a\u003e\u003c/h3\u003e\n            \u003ca href=\"outputs/day22.png\"\u003e\u003cimg src=\"outputs/day22.png\" height=\"200\"\u003e\u003c/a\u003e\n        \u003c/td\u003e\n    \u003c/tr\u003e\n    \u003ctr\u003e\n        \u003ctd\u003e\n            \u003ch3\u003e\u003ca href=\"src/day24.py\"\u003eDay 24\u003c/a\u003e\u003c/h3\u003e\n            \u003ca href=\"outputs/day24.png\"\u003e\u003cimg src=\"outputs/day24.png\" height=\"200\"\u003e\u003c/a\u003e\n        \u003c/td\u003e\n        \u003ctd\u003e\n        \u003c/td\u003e\n        \u003ctd\u003e\n        \u003c/td\u003e\n    \u003c/tr\u003e\n\u003c/table\u003e\n\n## Solve times\n\nSolve times from a single run on my computer. Available also as a [csv file](outputs/time_stats.csv).\n\n![Solve times horizontal bar chart](outputs/time_stats.png)\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgereleth%2Fadventofcode2022","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgereleth%2Fadventofcode2022","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgereleth%2Fadventofcode2022/lists"}