Skip to content

It is a text-based game which is coded in Java using BlueJ( integrated development environment ).

License

Notifications You must be signed in to change notification settings

saee-gore/CommandBasedGame

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

29 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CommandBasedGame

  • It is a command-based game which is coded in Java using BlueJ IDE and the game entirely runs on the terminal.

How to run

  • Install BlueJ IDE
  • Create the below 5 classes
  1. Command
    • Specifies how many arguments should be taken from user. In this game, user can give one or two argumnets only
  2. CommandWords
    • Specifies the keywords of the game.
  3. Parser
    • Scans the user's input and matches with the keyword and accordinggly runs the code.
  4. Room
    • Used for navigation in 4 directions: N,E,S,W.
  5. 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.

Result

The output of the program is shown in BlueJ's 'terminal' window

Programmer: Saee A. Gore

About

It is a text-based game which is coded in Java using BlueJ( integrated development environment ).

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages