HW 6

Kihra Martinez
2 min readFeb 27, 2021

For this assignment, I decided to do the snake game. I knew it was going to be hard, but I decided to give it a try.

  • I started by setting up the directions of the snake. Making the controls was not hard and it was fun even seeing how fast it could go. Even though I was able to make the snake, I didn’t know how to make it grow. I knew I needed a growth function, but I decided I would leave it like a baby snake.
  • Next, I made the food for the snake and made it almost match the background color. Doing this would be a fun test to see how good people can see the food. You could say this is part of the game.
  • Next, I had to make the game end. This wasn’t hard since all I had to do was make the screen go black and stop the snake, but I couldn’t make the screen say ‘GAME OVER’, so I decided to leave it out.
  • I also didn’t know how to keep score. I tried (and you can see it in my code), but I couldn’t get it to work.

--

--