pygame setup
Getting started with a game.
We make references to “writing code the right way”, but that is secondary to getting the correct answer. After all, how can you get a good grade if it doesn’t work?
In software engineering, everything needs to work, but doing it the right way is equally important. Why?
These characteristics are the result of your code design. The labs in these sections will go through code-level design principles that you, the developer, are responsible for when writing code.
The rules are:
Write these down! We will explore them in-depth in turn. We will start by creating a simple game, then applying design rules to it.
Click below to get started.
Getting started with a game.
Best practices for organizing functionality.
Functions should have a single, simple goal.
Functions should have a single, simple goal.
Handle errors where they can be meaningfully addressed; otherwise, re-raise them.
Use precise exception types to indicate error causes clearly; create custom exceptions when built-in ones don’t fit.