“As perfect as I am, I’m also extremely competitive” – Teruhashi Kokomi, The Disastrous Life of Saiki K.
New project week!!!! As usual I was extremely sceptical that I’d enjoy this project, but I was once again proved wrong. Coding little robots to solve a maze is so fun. And we can take these projects home for once, which helps with my personal goal of finishing this project early.
We learned about algorithmics and worked on creating a basic line following code, and it turned into a competition on who can make their robot the fastest. Turns out, along with bribery, competition is a great motivator for me. I was determined to have the fastest robot, I stayed late on Wednesday to really optimise my code. I don’t actually care about winning, the key is to know you tried your best regardless and be proud of yourself for that. Its the concept of being in a competition that motivates me.
One part of coding the robot to stop reminded me of my second c++ project back when I was in the games course. To get this robot to stop at a finish line we have an ‘if’ statement at the beginning of the main loop. If the ‘if’ statement was at the end of the loop then it would keep running since the loop just restarts regardless, whereas the loop is cut short when it reaches the fulfilled ‘if’ at the beginning.
I used the same logic to code a deck of cards being delt, it’s really cool to reuse something I didn’t even know was helpful.
Leave a Reply