Python Foundation Course (Session 6 of 6) - Final touches.

Hosted By
Mark W.

Details
Our snake eats and grows. The lesson follows these steps:
- a very brief recap and explanation of the current code (as a reminder and a brief introduction for anybody joining the course for the first time)
- we create a Food class, a red square randomly placed on the screen
- we extend our Snake class so that the snake can eat some food and grow (increase its length)
- when the snake eats the food, we increase its length by one square and it makes an eating sound.
We write some functions to draw the food and to check if the the snake collides with the food.
That's as far as we implement our game in the six week series. To conclude, we ask the AI assistant, in its role as an expert Python coach, to suggest ways to refactor the code and how to extend the functionality of the game
We finish with a recap of what we've learnt over the six week course. This includes some final thoughts about how well the AI assistant has helped us in our coding journey, and what this implies for the sort of (human) skills needed over the next few years.
Full details on the six week course here.

London Business Analytics Group
See more events
Online event
This event has passed
Python Foundation Course (Session 6 of 6) - Final touches.