联系方式

  • QQ:99515681
  • 邮箱:99515681@qq.com
  • 工作时间:8:00-23:00
  • 微信:codinghelp

您当前位置:首页 >> Java编程Java编程

日期:2020-11-18 11:35

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

3


相关文章

【上一篇】:到头了
【下一篇】:没有了

版权所有:编程辅导网 2018 All Rights Reserved 联系方式:QQ:99515681 电子信箱:99515681@qq.com
免责声明:本站部分内容从网络整理而来,只供参考!如有版权问题可联系本站删除。