Just a fun little update. I've been doing a computer science course on the side while learning nvim and making my game. With my game I got all the pseudo code laid out, and have began coding the beginning of it with no problems. I've discovered the true power of planning things before coding them up. If you take the time and make effort to plan things out, it all falls into place. Everything so far is so nice and modular, I can tweak one section of the game without it disturbing other parts of the game easily. That is a good thing because I need to run simulations to make sure no weird shit happens after certain events. Not all bugs and problems stop the compiler, so you have to take every little piece and test it dependently. It'd be a shame if someone caught a very rare fish then the game crashes. Or even worse, for some reason the game never gives you the chance to catch the rarest fish!
But I need to spend every moment of my time doing something related to computer science and programming. The reason is so that programming becomes my new normal. It is very easy to get distracted and waste time, and I'll be honest, there have been days I've been complacent. I started late in life so if I want to be truly good and still be "youngish" I need to put it in hard work now. But I'm not that pressured, as this is my hobby and truly recreational. I've been motivated by a lot of awesome Youtubers. I will leave links on the page below to show people who inspire me. One who I will mention here goes by the name of 'Tokyo Spliff'. Such a cool guy, he's an Aussie like me and started C++ and OpenGl when he was 28. He's been at it for 10 years and has impressively made a cool game that is quite unique. I do wonder if I should jump on c++ and get into OpenGl... But I'm happy on the little ecosystem I got going with C. I've been getting into Linux and Neovim, but man Neovim is so weird to use for the first time. You navigate solely through the 'hjkl' keys, which is so uncomfortable! But I'm getting the hang of it. It has an interactive tutorial, you type in a command :Tutor and it takes you there. It's a 900 line tutorial, and I go through it every day. But its layout when mastered is much faster than with the mouse. Because everything is a keyboard shortcut, you can code at lightning speeds and be much more productive. I do love VS code though, it's gonna be rough changing over away from it.
I completed a fun little challenge that I set myself. Without using loops, I made a bubble sort algorithm purely through IF statements! This is how it works: The IF statements test if one element is larger than another, if so, the two values are stored into temporary variables like little buffers, then these variables update the arrays element positions, and moves down the array. Let n be the amount of elements in an array, for my hand made bubble sort algorithm, the amount of passes is n - 1 times to completely sort the array from lowest to largest. I'll put a picture below to show what it looks like. I only did it for up to 4 elements because I don't want to go fuckin crazy. In reality the smartest way to sort an array is with a simple for loop, but I did this for the challenge, and restricted myself to IF statements only.