AdventOfCode.com is a fun little yearly coding challenge. The problems start generally approachable, but were designed by people with twisty minds, and naive solutions can run into challenges. People can use this to learn a new programming language, or to flex their skills on their daily language. It's a fun way to form a community among developers.
Stack:
- Rust
assignments/
- the Puzzle Assignments from AdventOfCode.cominput/
- the data-file associated with each puzzlesrc/puzzle/
- the source code for any given puzzlesrc/prelude.rs
- automatically import default types/crates into every puzzlesrc/main.rs
src/lib.rs
- CLI Command & Subcommandssrc/puzzle.rs
- Type every daily puzzle conforms to
cargo run -- -d1 -p1 download
cargo run -- -d1 -p1 puzzle
RUST_LOG=info RUST_BACKTRACE=1 cargo watch -x "run -- -d1 -p1 puzzle"
cargo run -- -d1 -p1 puzzle --submit
- Go to AdventOfCode, login to your account.
- Open DevTools, find the Storage->Cookies
- Find the
session
cookie, and copy its value pbpaste > ~/.adventofcode.session