Skip to content

A Template which can be used as a base for each year's AdventOfCode

Notifications You must be signed in to change notification settings

JMQuehl/AdventOfCodeTemplate

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Advent of Code Template

This project contains a template for solutions to the Advent of Code competition (https://adventofcode.com/).

All of this was created just for fun, so no guarantees on anything.

Usage:

  • set the current year in definitions.py
  • The entry point is: python advent_of_code_template/main.py
  • If you call python advent_of_code_template/main.py --task XX for any task that was not yet created, the structure for your solution is automatically generated.
    • If never done before, the terminal will ask you for your session ID in order to download your input data. Please refer to https://pypi.org/project/advent-of-code-data/ on how to get this.
    • (optional) add the task description to task.md
    • The example input and expected output has to manually be added to the test file in tests/
    • Your solution should be implemented in tasks/taskXX.py in the methods solve_task and solve_bonus_task.

About

A Template which can be used as a base for each year's AdventOfCode

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages