项目作者: logansquirel

项目描述 :
Advent of Code
高级语言: Rust
项目地址: git://github.com/logansquirel/advent_of_code.git
创建时间: 2020-07-11T20:46:54Z
项目社区:https://github.com/logansquirel/advent_of_code

开源协议:MIT License

下载


🎄 Advent of Code 🎅

Advent of Code is an annual Advent calendar of small programming puzzles for a
variety of skill sets and skill levels that can be solved in any programming
language you like.

Events

AoC-2015

AoC-2016

AoC-2017

AoC-2018

AoC-2019

AoC-2020

Solutions

CI

This repository is a collection of possible solution to each puzzle using the
Rust programming language.

AoC-2015

AoC-2016

AoC-2017

AoC-2018

AoC-2019

AoC-2020

Usage

  1. $ git clone https://github.com/logansquirel/advent_of_code.git
  2. $ cd aoc_yyyy/day_dd
  3. $ cargo run --quiet --release < input/input.dat
  4. Advent of Code yyyy-dd
  5. ------ Part 1 ------
  6. Answer 1
  7. ------ Part 2 ------
  8. Answer 2
  • Replace yyyy with the four digits year
  • Replace dd with the two digits day (0-padded)
  • (Optional) Replace the path input/input.dat with the path to your personal
    puzzle input.

Template

This repository provides a Rust template
(aoc_yyyy/day_dd) for advent of code.

  1. $ tree aoc_yyyy
  2. aoc_yyyy
  3. └── day_dd
  4. ├── Cargo.toml # Cargo configuration file
  5. ├── input
  6. └── input.dat # Puzzle input
  7. ├── readme.md
  8. ├── src
  9. ├── lib.rs # Puzzle solutions and unit tests
  10. └── main.rs # Puzzle main
  11. └── tests
  12. └── aoc_yyyy_day_dd.rs # Puzzle answers tests
  13. 4 directories, 6 files
  • Replace all yyyy occurences with the four digits year
  • Replace all dd occurences with the two digits day (0-padded)
  • Implement solution in lib.rs
  • Verify answers in aoc_yyyy_day_dd.rs

Questions, Issues, Contributing

For questions and issues, open an issue
here.

Contributions and Pull Requests (PR) are welcome.

License

License