Snake was a popular game on mobile phones in the days before smartphones. In the game, you’re a snake that grows each time it eats food. The goal is to increase your score by eating food, without eating yourself! Start by playing the game!
WASD
keys on your keyboard.Once you’ve finished playing, you can start editing the code! In the editor below, look through the existing code and see if you can make the changes listed in the requirements section below. Don’t worry if you break the code! Just click the reset
button to start again.
=== SNAKE ===
to something else.😀
by default) to something else.🍓
by default) to something else.score
you get for eating the fruit (100
by default).Below is an example of how the program should run:
Need some help? Click here to reveal a video walkthrough for this task!
You must be logged in to post a comment.