<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Snake :: CoderDojo Python &amp; Pygame</title><link>https://python.coderdojohasselt.be/en/challenges/01-snake/index.html</link><description>Note Requires: session 5 finished.
The snake moves by itself. You steer it with the arrow keys. Eat a piece of fruit: the snake grows one tile. Hit the wall or yourself: game over.
Getting started Download the starter code and unpack the ZIP. Open main.py in Thonny and click Run. You see an empty grid. The controls and the timing are already there. You fill in the functions nieuw_fruit(), zet_stap() and teken().</description><generator>Hugo</generator><language>en</language><atom:link href="https://python.coderdojohasselt.be/en/challenges/01-snake/index.xml" rel="self" type="application/rss+xml"/><item><title>Snake: Coach notes</title><link>https://python.coderdojohasselt.be/en/challenges/01-snake/mentor-notes/index.html</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://python.coderdojohasselt.be/en/challenges/01-snake/mentor-notes/index.html</guid><description>Goal of the challenge A ninja has finished the challenge when:
✅ Basic: the snake moves with the arrow keys, eats fruit, grows and shows the score. ⭐ Stretch: game over on a wall collision or a collision with itself; a game-over screen with the score; restart with R. 🔥 Expert: speed goes up as the score rises; the high score survives a restart; fruit never spawns on the snake. Preparation Give the ninja the starter code. It contains main.py and the images/ folder with the fruit pictures. The controls, the window and the timing are already there. The ninja fills in nieuw_fruit(), zet_stap() and teken(). Check that pygame is available on the laptop (see Installing Thonny). New concept: loading and scaling images This is the first time ninjas load an image and scale it too. The starter code already does it, but explain it when a ninja asks about it:</description></item></channel></rss>