Keep track of the score, lines total and high score.
The scoreboard.
| Parameters: | screen (Screen) – The screen on which the scoreboard is displayed. |
|---|
Add lines to the lines total and print it.
| Parameters: | addend – The number of lines to add. |
|---|
Add points to the score and print it.
| Parameters: | addend – The number of points to add. |
|---|
Print the score, lines total and hi-score.
Reinitialise the scoreboard after a game has ended. The current score becomes the new high score if necessary, the score and lines total are reset to zero, and all three numbers are printed.