Implement a back command in 1.12Ĭreate a TestGame class which includes a method called testBack() designed to test the operation of the ‘back’ command. When a player enters a room, part of the room description includes the name of the item located in the room followed by its weight.Įxercise 7.23 (ch 7). Each item has a name, a description, and a weight. Extend 1.12 so that a single item can be added to a room.
Save version 1.11 of the project to 1.12. This will be used when unit testing the Game class.Įxercise 7.14 (ch 7): extend 1.11 to include the look command which re-displays a description of the current room and its contentsĮxercise 7.20 (ch 7). Implement the display() method so it prints to the terminal window only if a boolean field in the Game class (called, for example ‘debug_mode’) is not true. Create a method called display() in the Game class with a single String parameter, which handles all output to the terminal window produced by the Game class. The 1.10 version should be executable outside of BlueJ.
Save a new copy of the modified project using its project name suffixed by ‘1.10’. Add a main method to the Game class which constructs a new Game object and calls its play() method.
#Bluej program change look software#
Hi im looking for a project of mine to be completed the software that i need it made in is bluej and the project will be on zuul.Ĭhange the room scenario in the zuul-better project provided with BlueJ, to something more interesting according to your fancy.