- It is a command-based game which is coded in Java using BlueJ IDE and the game entirely runs on the terminal.
- Install BlueJ IDE
- Create the below 5 classes
- Command
- Specifies how many arguments should be taken from user. In this game, user can give one or two argumnets only
- CommandWords
- Specifies the keywords of the game.
- Parser
- Scans the user's input and matches with the keyword and accordinggly runs the code.
- Room
- Used for navigation in 4 directions: N,E,S,W.
- Game
- The main code for the actual game is written here.
- Right click on the 'Game' in BlueJ and then do left click on the void main(String[]args) tab.
- Click on OK to run the program.
The output of the program is shown in BlueJ's 'terminal' window
Programmer: Saee A. Gore