Starting 2/3, all of my new CAD models will only be uploaded to Printables.
In a programming class I am taking, the teacher would occasionally host competitions with a specific theme, and we would write programs that fit the theme, and the class would vote on which one was the best. The first competition had a theme of snowman, and I won it with the project of Snowman Tetris. The second competition has a theme of draw face, and I'm hoping to win it with my project of Minesweeper. However, I heard someone in my class was making the game snake, so I decided to see how fast I could make it myself.
I spent the first 13 minutes setting up a tile map as a 17 tile square with a checkerboard pattern. I made the mistake of typing in an incorrect variable in a for loop which took me 4 minutes to find.
I then tried to set up a movement system for the snake, but ran into several previous mistakes, such as forgetting the parameters of the board in the start function.
I used a similar system to my minesweeper's mine placement code to find a random unoccupied square and place an apple there. I had some issues similar to my flagging code where an apple was being placed and instantly removed.
I spent a short bit of time working on a score system and game over screen when the snake crashes into a wall or itself.
During this whole process, I had made the snake game, but it was missing the element that allowed me to enter it into the contest: the face. I spent the last 13 minutes drawing a happy face that turned into a sad face when it died.Â