Skip to content

Latest commit

 

History

History

players-score-class

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 

Most computer games shows the player his score while playing. Often this score only rises, but sometimes it also can decline (e.g. when you make a wrong answer in a knowledge game).

Your task

Write a class that holds the current score and manages its current value. All methods are given, you just have to fill the placeholders. These are marked as TODO comments.

Hint

The score must not become negative. Instead, it should stay zero.