In this final increment we will complete the GCU adventure game. This means we have to meet the following requirements that were not met in the previous increments:
The sequence of turns should repeat until a command is given to quit
At each turn, the player can type a command to specify the action which he or she wants to take during that turn
The player should be able to ask for help during any turn instead of navigating
Meeting these requirements will give a program that behaves like a game and allows the player to engage and interact with the game. It is worth noting that although the game is a very simple one which is not really fun to play, the model we have built, using sound object oriented principles and practices, would provide a solid basis for the development of a more complex and interesting version of the game.
In this module you have been using the BlueJ IDE, which is ideal when you are learning to program in Java and work with classes and objects. However, you don’t need to use BlueJ to write programs, and most advanced and professional developers prefer to use one of a range of sophisticated IDEs that are available for Java and provide a wide range of features to make development as productive as possible and provide help with, for example, creating graphical user interfaces. This week you will learn to use NetBeans to create a simple graphical interface for a Java program.