Main content
Unit 4: Playing games with functions
About this unit
How do teams of programmers continuously write and revise code without breaking things? Learn how to break down programs into smaller, independent functions that can be easily read, reused, and tested. Design and write function definitions with parameters and return values as you develop your own game components.
Can you break down a program into smaller pieces?
Practice
What happens when a function calls another function?
Practice
An organized programmer is a happy programmer.
How can you be sure that your function works?
Practice
Players have short attention spans. Can you keep them engaged?