Hello, dear friend, you can consult us at any time if you have any questions, add WeChat: THEend8_
Assignment
Submission :
1. Sample run of your RPG. Copy-and-paste to the text area of Moodle (10%)
2. Upload the .java file to Moodle (90%)
Create a text-based and menu-based simple RPG. According to the following requirements. You can feel
free to design your own additional features
DO NOT implement the following features
First of all, this is a very simple game. Make sure you DO NOT work on the following
Map
Game saving and loading
GUI
ASCII art
Timer
Five Least Requirements (10% each)
The requirements are very simple, check the sample output in next page
1. Create player
2. Display player's status
3. Display player's inventory. ArrayList
4. Buy item. ArrayList
5. Sell item. ArrayList
Four Freely-Design Requirements (10% each)
4 addition required features are listed below. Feel free to design how they work. The marks will be based on
how complex your implementation is. Some ideas are listed below to give you some ideas. Do not stick to
the list below.
6. Job of the player
Different mode of attacks based on jobs?
Different skills?
7. Additional player attributes
HP, MP, Dex, Str, level, etc..
Affect of damage based on the attributes?
8. Defeat monsters
? Multiple rounds of attack?
? Player death?
? Drops of the monster after defeat?
? Stealing from the monster?
? Damage calculation?
9. ONE other feature you can think of
? Wearing of equipment
? Consumable item
? etc..
Sample Run - 10%
10. Sample run output like in the next page. Copy-and-paste the sample run in the text area of Moodle
1
Sample Run that Meet the Five Least Requirement (50%)
The least requirements are very simple. Please design your own output. Do not copy the items strictly from
this sample.
My Simple RPG
=============
Please enter your name : cliffso
Player cliffso, job Sorcerer, with experience point 0 and 10000 gold created
Main Menu
=========
1) Display your status
2) Display your inventory
3) Buy item
4) Sell item
0) Exit
Please make a selection : 1
Name Job Exp Gold
cliffso Sorcerer 0 10000
Main Menu
=========
1) Display your status
2) Display your inventory
3) Buy item
4) Sell item
0) Exit
Please make a selection : 3
Currently, you have 10000 gold
6 items available
id Name Price
1 Sword of Diligence 700
2 Golden Chain Mail 400
3 HP Potion 50
4 MP Potion 40
5 Sprinter Boot 200
6 Berserker Helm 300
Enter the item you want to buy in id : 1
You have bought Sword of Diligence for 700 gold
Main Menu
=========
1) Display your status
2) Display your inventory
3) Buy item
4) Sell item
0) Exit
Please make a selection : 2
Your inventory:
itemid name
1 Sword of Diligence
Main Menu
=========
1) Display your status
2) Display your inventory
2
3) Buy item
4) Sell item
0) Exit
Please make a selection : 4
Your inventory:
itemid name
1 Sword of Diligence
Enter the item you want to sell in itemid : 1
You have sold Sword of Diligence for 700 gold
Main Menu
=========
1) Display your status
2) Display your inventory
3) Buy item
4) Sell item
0) Exit
Please make a selection : 1
Name Job Exp Gold
cliffso Sorcerer 0 10000
Main Menu
=========
1) Display your status
2) Display your inventory
3) Buy item
4) Sell item
0) Exit
Please make a selection : 0