Skip to content

schweikart/advent-of-code-2021

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Advent of Code 2021

Advent of Code is an Advent calendar of small programming puzzles. This year, I have attempted to solve the exercises in Haskell, a functional programming language that I need to learn for the "Programming Paradigms" course at my university.

Running the solution code

The solution algorithms are implemented in Haskell and have been tested with GHC 9.0.1 on Windows.

If you are using VS Code, you can run each day's solution by running the respective task. Otherwise, just run runghc dayXX.hs inside the day's folder.

To run the solution algorithm with your own puzzle input, just replace the input.txt file in the day's folder with your own puzzle input and run the solution algorithm again.

File structure

  • .vscode/tasks.json: configuration file that allows running my code through VS Code
  • ./dayXX/: Puzzle input, description and solution code for the XX-th day of the advent calendar
  • .gitignore: configuration file that keeps generated files out of the git repo
  • README.md: description of and instructions for this repository

License

(c) 2021, Max Schweikart

The solution code is available with an MIT License. Take a look at the LICENSE document for details.

The puzzle input files (dayXX/input.txt) were generated by Advent of Code. Please consider supporting them!