![]() |
![]() |
![]() |
![]() |
![]() |
More Exercises...
As a "menu" of new features that can be introduced, we suggest that you try to extend the AdvancedDemonGame with the following:
- Memorization of "highest score ever" since system start (there should be only one highest score, common for all types of games).
- A "hall of fame" that memorizes the name of the player that reaches the "highest score ever". (The name is assumed to be provided by the environment).
- A "gameover" function that checks if the current score is less than an arbitrary value of, say -100, and disables the game so that the player needs to restart it entirely.
http://www.ibm.com/rational |
![]() |
![]() |
![]() |
![]() |