100 Days of Code: The Complete Python Pro Boot Camp – Day 21 Project
Re-create the snake game from old mobile phones using Python Turtle package.
Snake starts off automatically. Create onclick for up, down, left, and right keys.
Navigate snake to eat food that randomly appears across the gameboard.
Create a scoreboard that increases each time the snake eats food.
Lose the game if snake collides with walls or tail.
- Choose ‘Open in Replit’
- Select ‘Run’ to play/replay the game.
- Close the main.py screen. Maximize the output window.
- Make sure to click mouse on screen quickly before you navigate with up/down/left/right keys.