首页 > > 详细

辅导data编程、讲解java程序设计、Programming编程讲解解析Haskell程序|调试C/C++编程

Introduction to Programming - Simple Text-Based RPG
Assignment 2
Deadline : 21 Nov (Sat) 10:00pm
Cutoff : 22 Nov (Sun) 10:00pm
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
Goodbye
 

联系我们
  • QQ:99515681
  • 邮箱:99515681@qq.com
  • 工作时间:8:00-21:00
  • 微信:codinghelp
热点标签

联系我们 - QQ: 99515681 微信:codinghelp
程序辅导网!