Roast my rust code
Hello I am a 15 year old hobiest programmer who started learning rust about a week ago. I always wanted to learn a lower level language and rust seemed interesting. I decided to learn the language by taking on a project that I knew full well I would fail at(at least at first) then figure out what knowledge gaps caused me to fail then try again. Since I am a huge chess fan (rated 1530 on chess.com) I decided to go with the very ambitious project of a chess engine. Within 3 days I had reached 1500 lines of code that was written extremely poorly and riddled with bugs. I realized that I had shot myself in the foot in many ways so I spent the fourth day refactoring and managed to delete 500 lines of code. At that point I made a list of all the knowledge gaps that I realized caused me to make all those mistakes then spent the next 2 days on 12 smaller projects (about 50 lines each) that were picked to practice each of these ideas on a more manageable scale. I then spent 2 more days doing the 2015 advent of code from start to finish in rust and golang. I am now revisiting this project with this new knowledge and pretty much rewriting half of it because I made so many stupid mistakes. If you too would like to laugh at the stupidity of past me you can see the code here https://github.com/CorbinAutomations