Skip to content

JoshOrndorff/advent-of-code-2020

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

40 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Advent of Code 2020

My solutions to https://adventofcode.com 2020.

Using the CLI

# Compile
cargo build # builds to target/debug/advent-of-code-2020

# Solve day 10 problem with input on the CLI
advent-of-code-2020 --day 10 --input 1234

# Solve day 1 problem with input from a file
advent-of-code-2020 --day 10 --input-file inputs/day1.json

# Learn more
advent-of-code-2020 --help

Lessons Learned

I'm trying to experiment with new techniques to improve my Rust chops.

  • Using structopt to take CLI arguments
  • Dynamically dispatching to solvers for specific days

Aspirational:

  • Use wasm bindgen and make a website
  • Write a few parsers with nom
  • A macros. Two use cases so far:
    • For the mods and uses in lib.rs
    • For the day matcher in main.rs

About

Solutions to adventofcode.com 2020

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages