Advent of Code 2022
https://github.com/Chocorean/aoc22.git
My modest attempt at AoC22 in Rust.
Each of all sub-directories is an independant rust project. Depending on my mood of the day, I may have modified/broken/commented out the first part of the challenge.
Overall, I'm quite disappointed with my understanding of the problems. Either I don't read well, or my implementations are missing a case, or at least I don't think enough while writing. I've lost a ton of time looking for an error while I just did not understand what the game was expecting.
A little bit disappointed at myself, but at least now that I realized some of my
weaknesses, that makes room for improvement.
I want to use clippy when I will be done with this year's AoC, to see what I
can improve with the code I currently write. I hope I will have the motivation
to try the previous editions of AoC, and I hope to notice a difference with this
year's code.
Finally, I found very helpful to look at fasterthanlime's serie. Not only he is using relevant and helpful I don't know about, but also has a better knowledge of the language, and I have found some really convenient way to do what I want in his snippets.
I have been cheating for the first time on day 13 (bruh), but I was starting to lose confidence and I needed to move on. After verifying my implementation was wrong (I validated part 1 with his code), I went back to my implementation once again, reviwed my logic, and finally found what the mistake.
I was looking at FTL's code, and realized how long mine will take to complete. I am currently thinking about trying something similar to increase the speed of my implementation. Overall I'm still okay with mine, for some reasons I struggled yesterday on it, but this morning I woke up fresh and I started over with a new approach, and eventually it was much easier like that.
Ok, let's take a break on this and move on day 15. I am opening an issue and I will take a look at this later.
I should stop trying to implement everything myself and sometimes rely more on other people's work. Thank you Jon!
I can say I have failed day 16. I do feel I have improved my Rust knowledge, which is enough for now. It is a specific time of the year, everyone was a lot of stuff to think about, me included. Overall I am happy enough with what I have done. I have learnt and that is what matters. Now is the time to find something else to do. Thanks AoC22 !