Day2Part1
This commit is contained in:
parent
86dcbd3aaf
commit
5d1d878d78
7 changed files with 117 additions and 18 deletions
|
|
@ -67,10 +67,6 @@ auto executeSafeCrack(const std::vector<DialRotation>& dialRotations){
|
|||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
std::println("{} : {:3}, Dial now at: {:5} cnt: {}", curDial.direction, curDial.distance, dial, countZero);
|
||||
if (dial < 0){
|
||||
std::cout << "Shit's fucked!\n";
|
||||
|
|
@ -86,7 +82,6 @@ auto executeSafeCrack(const std::vector<DialRotation>& dialRotations){
|
|||
}
|
||||
|
||||
auto main(int, char**) -> int {
|
||||
std::cout << "Hello, from aoc25 day1!!\n";
|
||||
auto retval = parseRotations("day1_input");
|
||||
|
||||
std::vector<DialRotation> testCase = {
|
||||
|
|
@ -103,8 +98,7 @@ auto main(int, char**) -> int {
|
|||
{'L', 1000},
|
||||
};
|
||||
|
||||
if(retval)
|
||||
{
|
||||
if(retval) {
|
||||
auto realResult = executeSafeCrack(*retval);
|
||||
auto result = executeSafeCrack(testCase);
|
||||
std::println("Testcase result: {}", result);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue