19.3.1 Simple Things

We’ll do the basic functions first. The init method assigns all variables a suitable starting value. You start at level 1, with 0 points. And you have not won yet. The speed is equal to the constant INITIAL_SPEED.

The methods getSpeed, getPoints, getLevel and hasWon just return the value of the corresponding variable.

Write the contents of these five methods yourself.