精品深夜AV无码一区二区_伊人久久无码中文字幕_午夜无码伦费影视在线观看_伊人久久无码精品中文字幕

代寫FIT9131、Java程序設計代做

時間:2024-05-20  來源:  作者: 我要糾錯



FIT9131 Assignment B: Fellowship of Code: a Java Adventure in Middle Earth

Introduction

In preparing your program, please note the following:

You must use the workspace environment in the Ed platform to code all parts of your program. You must not copy and paste large sections of code from somewhere else. 

You must acknowledge all code in your assignment that you have taken from other sources.

The Java source code for this assignment must be implemented according to the FIT9131 Java Coding Standards. 

Only a text interface is to be used for this program.  More marks will be gained for a program that is easy to follow with clear navigation information and error messages.

In this assessment, you must not use generative artificial intelligence (AI) to generate any materials or content in relation to the assessment task.

Any points needing clarification may be discussed with your tutor in your applied learning class. You should not make any assumptions about the program without consulting your tutor.

Completion of this assignment contributes towards the following FIT9131 learning outcomes:

Design and construct Java programs according to standard object-oriented principles

Apply and demonstrate debugging processes to Java applications

Develop strategies for efficient and effective program testing

Document code according to specific programming standards

Identify and apply the "object-oriented" concepts of encapsulation, abstraction and polymorphism

Explain and apply software engineering principles of maintainability, readability and modularisation

Specification
For this assignment you will write a program to play a game Fellowship of Code: a Java Adventure in Middle Earth. This section specifies the required functionality of the program. 

Special Note: Before your Applied class in Week 11 there will be a small enhancement to the specification, so good design for your program will be important to allow easy modification to incorporate this change. 

Background
Fellowship of Code is a game where a group of adventurers go on a quest through a labyrinth in Middle Earth to deliver a secret code stored on a floppy disk to a Java wizard on Mount Api. During the quest the group must protect the secret code from being stolen by any evil creatures they encounter. The group of adventurers are known as the Fellowship. The Fellowship is led by a hobbit and other members of the group are elves and dwarves. The evil creatures that try to steal the code are orcs, trolls, and goblins. 

The aim of the quest is for the Fellowship to travel through a labyrinth and safely deliver the code. The labyrinth consists of a series of connected caves, with each one having at least one entry into another cave.  At least one of the caves will have an exit to Mount Api. The Fellowship must decide which option to take as they navigate through the labyrinth.   When entering a cave the Fellowship may encounter an orc, a troll or a goblin. As a consequence, they may suffer damage, and may have the code stolen from them. If the code is stolen then the Fellowship may try to steal it back if they encounter the same creature again. If any creature suffers too much damage, then they die and no longer participate in the game.  The game ends successfully when at least one of the Fellowship reaches Mount Api with the secret code to deliver to the Java wizard. 

Note that some of the characters and places in this assignment are taken from the "The Lord of the Rings" novels by  J.R.R. Tolkien.

This section specifies the required functionality of the program. Only a text interface is required for this program; however, more marks will be gained for a simulation that is easy to follow with clear information/error messages to the user.

Fellowship of code
The Fellowship of Code game is controlled by a player. The player chooses the members of the Fellowship, chooses which members of the Fellowship will fight and makes the navigation decisions.  The evil creatures appear randomly in each cave and the player must decide how to deal with them.  The structure of the labyrinth is pre-determined and is read in from a file.

Program start up 

The program begins by displaying a welcome message and brief instructions for the game. 

The player is prompted for the type of creatures they would like to have as members of the Fellowship. They can choose up to 4 members. The leader will be a hobbit and the remainder must be elves or dwarves, in any combination.  Each creature starts with no damage points and the following power ratings, which is used to determine their chances of winning a fight:

hobbit: power = 3 points

elf:   power = 5 points

dwarf: power = 7 points 

In addition, the hobbit and each elf will have a special weapon, which can be used once and will always win a fight. Dwarves have greater power but no special weapon.

The labyrinth structure is read in from a file labyrinth.txt. The file consists of a number of lines, with each line containing the details of one cave.  Each line has five comma separated integers: cave identity, north cave identity, east cave identity, south cave identity, west cave identity.  A zero value for a north, east, south, west cave identity means that the entry to the cave is blocked or there is no cave in that direction. A value of 100 is the identity of Mount Api.

A collection of caves is created from the details read from the file. Each cave will have the following details. 

cave identity:  an integer

north: identity of the northern cave or Mount Api, or 0 if the entry is blocked. 

east: identity of the eastern cave or Mount Api, or 0 if the entry is blocked. 

south: identity of the southern cave or Mount Api, or 0 if the entry is blocked. 

west: identity of the western cave or or Mount Api, or 0 if the entry is blocked. 

Living in the caves are orcs, trolls, and goblins. These are aggressive creatures that will fight to steal the code.  These creatures start with no damage points and the following power ratings:

orc:  power = 5

troll:  power = 9

goblin: power = 3

Note that these creatures do not have any special weapons. 

The game begins with the Fellowship entering the first cave with the secret code. The Fellowship navigates from cave to cave through the labyrinth until they reach Mount Api or die along the way. 

Specific actions in a cave

When the Fellowship enters a cave the following may occur:

1. There is a 75% chance of an orc, troll, or goblin being present in the cave.  No more than one creature will be in the cave. Each creature has the same probability of appearing. The creature remains in the cave for the duration of the game.

2. If there is no orc, troll, or goblin in the cave then:

the Fellowship members have a chance to recover and each member loses a damage point. Note that the damage points can't  be negative.

the Fellowship chooses the next cave to enter or takes the exit to Mount Api, if available.  

3. If there is an orc, troll, or goblin in the cave then this aggressive creature will fight to steal the code.  The player decides which member of the Fellowship will fight the creature.  Possible outcomes of the fight depend on the difference in power rating. If a creature has a power rating of:

4 or more points greater than their opponent, they have a 90% chance of winning.

3 or more points greater than their opponent, they have a 80% chance of winning.

2 or more points greater than their opponent, they have a 70% chance of winning.

1 or more points greater than their opponent, they have a 60% chance of winning.

equal to their opponent then each has a 50% chance of winning. 

4. A creature can use their special weapon once in the game. The special weapon will kill the opponent.

5. As a result of a fight:

The winner steals the secret code. 

The damage points of the winner is increased by 1 point.

The damage points of the loser is increased by 4 points.

The creature will die if a special weapon has been used against them.

6. A creature can use their special weapon once in the game. The special weapon will kill the opponent and there will be no damage to the creature that used the weapon.

7.  If a creature has 10 or more damage points then they unfortunately die and are no longer in the game. 

8.  If the last member of the Fellowship dies then the game ends.

9.  If the orc, troll, and goblin are all killed then the Fellowship can navigate the labyrinth safely until they reach Mount Api.

10.  After a fight the player chooses the next cave for the Fellowship to enter. 

If there is only one cave option then the Fellowship must enter this cave.

If there is an exit to Mount Api then the Fellowship may take this exit to deliver the secret code to the Java wizard and the game ends. 

If the Fellowship does not have the secret code then they would try to navigate back to the cave to steal back the code from the creature that has the code. 

11. After these events and before moving to the next cave, the following information is displayed:

a list of caves the Fellowship has visited showing whether there is a creature in the cave 

an indication of which creature holds the code

the damage points for each creature

the identity of the cave that the Fellowship will enter

Specific actions at the end of the game

At the end of the game a summary is displayed.

The outcome of the quest, whether it was successful or not and the creature that delivered the code

The number of caves visited by the Fellowship

The number of times the secret code changed hands

A list of the creatures that died.

The Fellowship fight success rate given as:  
 number of fights won by the Fellowship * 100 / total fights

A summary is written to the file fellowship.txt.

請加QQ:99515681  郵箱:99515681@qq.com   WX:codinghelp





 

標簽:

掃一掃在手機打開當前頁
  • 上一篇:ENG5284代做、代寫C++,Python/MATLAB編程
  • 下一篇:COMP30023代做、代寫C/C++編程語言
  • 無相關信息
    昆明生活資訊

    昆明圖文信息
    蝴蝶泉(4A)-大理旅游
    蝴蝶泉(4A)-大理旅游
    油炸竹蟲
    油炸竹蟲
    酸筍煮魚(雞)
    酸筍煮魚(雞)
    竹筒飯
    竹筒飯
    香茅草烤魚
    香茅草烤魚
    檸檬烤魚
    檸檬烤魚
    昆明西山國家級風景名勝區
    昆明西山國家級風景名勝區
    昆明旅游索道攻略
    昆明旅游索道攻略
  • 短信驗證碼平臺 理財 WPS下載

    關于我們 | 打賞支持 | 廣告服務 | 聯系我們 | 網站地圖 | 免責聲明 | 幫助中心 | 友情鏈接 |

    Copyright © 2025 kmw.cc Inc. All Rights Reserved. 昆明網 版權所有
    ICP備06013414號-3 公安備 42010502001045

    精品深夜AV无码一区二区_伊人久久无码中文字幕_午夜无码伦费影视在线观看_伊人久久无码精品中文字幕
    <samp id="e4iaa"><tbody id="e4iaa"></tbody></samp>
    <ul id="e4iaa"></ul>
    <blockquote id="e4iaa"><tfoot id="e4iaa"></tfoot></blockquote>
    • <samp id="e4iaa"><tbody id="e4iaa"></tbody></samp>
      <ul id="e4iaa"></ul>
      <samp id="e4iaa"><tbody id="e4iaa"></tbody></samp><ul id="e4iaa"></ul>
      <ul id="e4iaa"></ul>
      <th id="e4iaa"><menu id="e4iaa"></menu></th>
      国产精品人成在线观看免费| 久久久久9999亚洲精品| 国产成人精品一区二区三区四区| 午夜久久久久久| 午夜亚洲福利老司机| 亚洲永久免费视频| 亚洲va韩国va欧美va精品| 亚洲国产日韩a在线播放| 一区二区三区免费网站| 亚洲一区二区精品久久av| 亚洲精品久久嫩草网站秘色| 亚洲人成精品久久久久久 | 日本午夜一区二区| 日韩精品一区第一页| 麻豆精品在线看| 国产福利不卡视频| 99re免费视频精品全部| 欧美四级电影网| 欧美一卡在线观看| 中文乱码免费一区二区| 亚洲视频一区二区在线| 亚洲va天堂va国产va久| 久久99蜜桃精品| www.在线成人| 69堂亚洲精品首页| 国产婷婷色一区二区三区| 亚洲桃色在线一区| 蜜桃精品视频在线| 91在线丨porny丨国产| 在线电影一区二区三区| 久久久久久久久久久久久久久99 | 色欧美乱欧美15图片| 91精品国产色综合久久| 日本一区二区免费在线观看视频 | 91亚洲精品久久久蜜桃| 在线播放亚洲一区| 欧美国产精品久久| 日本亚洲一区二区| 91视频观看免费| 久久一留热品黄| 偷窥国产亚洲免费视频| 国产mv日韩mv欧美| 91精品国产美女浴室洗澡无遮挡| 国产欧美视频在线观看| 日韩成人午夜精品| 色综合视频一区二区三区高清| 欧美α欧美αv大片| 亚洲午夜在线电影| fc2成人免费人成在线观看播放 | 亚洲成a人片在线观看中文| 国产成人午夜视频| 7777精品伊人久久久大香线蕉经典版下载 | 在线观看免费亚洲| 欧美激情一区二区三区不卡| 视频在线在亚洲| 91黄视频在线| 亚洲欧美日韩人成在线播放| 国产一区二区三区| 日韩欧美三级在线| 日韩黄色在线观看| 欧美视频在线一区二区三区| 国产精品久久影院| 国产jizzjizz一区二区| 精品三级在线看| 黄色日韩网站视频| 欧美va亚洲va国产综合| 美腿丝袜亚洲综合| 日韩欧美三级在线| 经典三级一区二区| 精品成a人在线观看| 国内精品免费**视频| 日韩一区二区在线免费观看| 视频一区二区中文字幕| 777奇米成人网| 国产传媒欧美日韩成人| 国产宾馆实践打屁股91| 久久久久久久网| 国产成人精品在线看| 久久久久久久综合色一本| 国产成人av福利| 亚洲欧洲日韩av| jlzzjlzz国产精品久久| 一区二区三区四区五区视频在线观看| 99久久精品免费看国产| 亚洲精品久久久蜜桃| 欧美少妇性性性| 美日韩黄色大片| 国产亚洲美州欧州综合国| 北条麻妃一区二区三区| 亚洲免费观看高清完整版在线| 在线免费观看日本一区| 婷婷一区二区三区| 日韩欧美激情一区| 国产91清纯白嫩初高中在线观看| 国产精品免费久久| 欧美亚洲动漫精品| 九一久久久久久| 国产精品热久久久久夜色精品三区| 91女神在线视频| 日韩电影免费一区| 中文字幕第一区二区| 在线日韩一区二区| 国产在线看一区| 亚洲综合精品自拍| 欧美videos中文字幕| 99久久99久久综合| 日韩在线a电影| 国产精品乱码一区二区三区软件| 在线亚洲+欧美+日本专区| 精品一区二区国语对白| 亚洲三级小视频| 亚洲精品在线三区| 欧洲生活片亚洲生活在线观看| 日本不卡视频一二三区| 亚洲欧洲日韩av| 精品免费国产一区二区三区四区| 99视频国产精品| 国内精品嫩模私拍在线| 亚洲精品日日夜夜| 国产无一区二区| 日韩一级免费观看| 欧美三级日韩三级| av在线综合网| 国产精品99久| 麻豆91免费观看| 五月婷婷激情综合网| 国产精品美女久久久久久2018| 欧美日韩高清不卡| 色综合久久久久网| 成人a免费在线看| 国产九色sp调教91| 欧美aa在线视频| 午夜精品影院在线观看| 又紧又大又爽精品一区二区| 国产欧美一区二区三区沐欲| 日韩亚洲欧美高清| 91精品国产高清一区二区三区 | 国产资源在线一区| 日韩电影在线观看电影| 一区二区日韩av| 亚洲区小说区图片区qvod| 国产精品网站一区| 国产女人18毛片水真多成人如厕| 精品国产污网站| 精品福利视频一区二区三区| 884aa四虎影成人精品一区| 欧美性生活影院| 在线视频亚洲一区| 欧美视频一区二区| 欧美日韩高清一区| 91精品国产91热久久久做人人| 欧美日韩激情在线| 91超碰这里只有精品国产| 欧美日韩在线精品一区二区三区激情| 色狠狠综合天天综合综合| 色噜噜久久综合| 欧美三级视频在线观看| 制服丝袜激情欧洲亚洲| 日韩欧美在线网站| 久久一二三国产| 中文字幕中文在线不卡住| 亚洲视频一区在线| 亚洲国产一区二区a毛片| 日韩精品福利网| 国产一区二区三区蝌蚪| 成人综合婷婷国产精品久久免费| 成人国产电影网| 欧美性大战久久久久久久蜜臀| 色噜噜狠狠色综合欧洲selulu| 在线观看国产91| 日韩你懂的在线播放| 久久久久88色偷偷免费| 亚洲少妇30p| 偷拍一区二区三区| 国产成人精品免费在线| 色播五月激情综合网| 日韩欧美中文字幕制服| 国产精品久久久久一区二区三区| 亚洲欧美一区二区三区极速播放 | 91偷拍与自偷拍精品| 欧美性生活久久| 欧美精品一区二区久久久| 国产精品三级电影| 婷婷开心激情综合| 成人性色生活片| 3d动漫精品啪啪1区2区免费| 国产欧美日韩久久| 日韩高清一级片| eeuss鲁片一区二区三区在线看| 欧美日韩在线观看一区二区| 久久精品男人天堂av| 亚洲成va人在线观看| 不卡视频在线看| 91精品国产全国免费观看| 亚洲人精品一区| 国产伦精一区二区三区| 欧美日韩夫妻久久| 亚洲视频网在线直播| 九色|91porny| 欧美精品久久一区二区三区|