-
Create a new project from the template repository:
- Using GitHub’s templating feature: Simply click the Use this template button on the repository page, create a new repository, and then open it in RustRover by selecting File | New | Project From Version Control….
- Adding the template to RustRover: You can integrate the template directly into RustRover and use the regular New Project wizard.
-
Whenever you're ready to start solving a new day's puzzle:
- Open the
bin
folder, copy and paste theNN.rs
file into it, and give it the corresponding name (01.rs
,02.rs
, etc.). - In the
input
folder, create and fill the input data file (01.txt
,02.txt
, etc.). - Fill in the
DAY
constant in the freshly created file. - Run the current day's solution to check if it compiles (you can use the gutter icon next to the
main
function). - Fill in
<TEST-INPUT>
. - Write the expected answer for the test data in the
assert_eq
statement in Part 1. - Now you're ready to write your solution in the
part1
function (insidemain
). - Use
Shift+F10
(Win/Linux) orCtrl-R
(macOS) to re-run the same program.
- Open the
-
When you're done with the first part of the puzzle, use folding to hide Part 1.
-
Uncomment Part 2, fill in the test data assertion, and start solving it.
generated from bravit/advent-of-code-rust-template
-
Notifications
You must be signed in to change notification settings - Fork 0
hoaikhanhnguyen/aoc-2024-rust
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
Advent of Code 2024 in Rust
Topics
Resources
Stars
Watchers
Forks
Packages 0
No packages published