Skip to content

Create an Advent of Code 2025 template with automated input fetching, testing, and submission #1

@Tim567

Description

@Tim567

Overview

Develop a template/script for Advent of Code 2025 that:

  • Automatically fetches the input file for a given problem and day from the Advent of Code website using the user's session cookie.
  • Provides an easy-to-use structure or harness for testing solutions locally with provided examples and real input.
  • Offers automated solution submission to Advent of Code site, capturing and displaying the result/status.

Features

  1. Input Automation
    • Fetch input file for a specific year and day based on user/session info.
    • Store inputs in a local directory for later runs.
  2. Testing
    • Integrate simple testing (using built-in asserts or a lightweight test framework) for checking solutions on sample input/output before running on real input.
    • Optionally allow user to provide more test cases.
  3. Submission Automation
    • Script to automatically submit answers to Advent of Code and process response, including handling of wrong-right answers, wait times, and reporting result to the user.
  4. Documentation & Setup
    • Instructions for configuring the session cookie securely.
    • Example usage to illustrate the workflow, e.g., python solve.py 2025 1 or similar.

Implementation Suggestions

  • Choose Python for initial script (or make language-agnostic if practical).
  • Separate configuration for session cookie/token to avoid accidental leaks.
  • User prompts or CLI arguments for year, day, and part selection.

Benefits

  • Saves time fetching/copying input and submitting answers manually.
  • Reduces repeated boilerplate for new days/problems.
  • Makes testing, development, and submission more reliable and streamlined.

Notes


This would improve usability, automation, and accelerate the workflow for Advent of Code 2025.

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions