Computer role-playing game based on the setting

Assignment Help Data Structure & Algorithms
Reference no: EM133672375

Implement the parts a, b and c into given skeleton code

Baldur's Door is a new computer role-playing game based on the setting of a popular table-top game called Delves & Drakes, the game features an extensive variety puzzles and mechanics which critics have lauded as interesting and allowing for diverse modes of play. The game's characters take on quests which lead to puzzles.

Part A
In the early quests of the game, the town's tavern is advertising exciting new flavours for their soups. The cook has promised 500 silver pieces for each novel ingredient on their list gathered. Though appearing generous for ingredient gathering in the nearby forest, the party cleric noticed that each ingredient requires crawling between poison bushes. The party rogue has the smallest build and will likely be able to crawl through the bush without being scratched too badly - but will surely be afflicted. Once the poison takes hold, each step taken will passively do a fixed amount of damage. The cleric's healing spell can only be tasted once the party rogue has exited the narrow space. Since each casting of the healing spell requires expensive magical materials, you will have to find the route that reaches the exit in the least possible steps.

An example of the forest pathways are shown below, where each edge represents a step and each node represents a location the rogue can step to:

The forest layout above would be represented by the input to your program:

Where:
• the first line ( a ) is the number of locations the rogue can possibly step,
• the following line (11 ) is the number of connections between locations,
• the third line (a) is the location the rogue starts at
• the fourth line ( 5 ) is the location the rogue exits the space and is in range to be healed, and
• all following lines are pairs, indicating an undirected connection between the two locations.
You may assume the list is sorted numerically by the first location and then (where the first location is equal) by the second location. You may also assume locations are always equal to or greater than 0 and numbered less than the number of locations.
The output should be the damage taken - assuming one point of damage is taken per step.

Part B

After hearing the ease with which our protagonists were able to deal with the poison forest, a local merchant staying at the tavern asks if the party would be interested in a challenge. The merchant had come into possession of a number of lair maps that showed the locations of all the traps in each lair. The merchant confessed they did not have any non-mercantile skills but had managed to purchase information on how to disarm each trap. After discussing the skills the party held, the merchant explained the cost of the materials they'd need to disarm each trap they had the skills to disarm and marked this total cost on each pathway. To preserve the most treasure, you'll need to find the cheapest path through the lair.
Here is an example of one of these maps:

This map would be represented using the following format

Which is the same as the format for Part A, but each edge specified includes an additional third number describing the cost of disarming the trap. You may also assume that all costs will be non-negative.

Part C

To reward the adventurers for their extensive help connecting the merchant with their extensive treasures, they share their own prior connections. The documents they share detail artisans who will offer ongoing services for a particular price-each artisan on the map is able to create one material from another and reverse the process. Each document is limited to the connections for a particular set of materials which are related in some way. Since the general store merchants offer a new daily special periodically, having a network which allows the creation of all materials from any material in the documents will save a lot of money in future adventures. You will have to find the gold you'll need to build the network which allows any material to be reached from any other material in the document.
Here is an example of one of these documents:

Which is similar to the format for Part 8, but excludes the fourth line that would normally specify the final destination.

The output will be the minimum cost required to pay across all artisans such that each material in the document can be made from any other material.

Attachment:- role-playing game.zip

Reference no: EM133672375

Questions Cloud

Protect company against financial consequence : What type of consequential loss protection would protect a company against financial consequence
Created culture of exceptional service : Created a culture of exceptional service because of which many consumers are willing to pay more for the "privilege" of using an American Express card.
Describe participants and your reason for selecting groups : What is the educational need you plan to address with your learning activity? Describe the participants and your reason for selecting those groups?
What is the student required to demonstrate : What is the student required to demonstrate? How long will you give them to perform the skill? How many times can they attempt the skill?
Computer role-playing game based on the setting : Computer role-playing game based on the setting of a popular table-top game called Delves & Drakes, the game features an extensive variety puzzles
Describe the legal and ethical issues : Describe the legal and ethical issues involved in the collection, handling and use of data in the context of business.
What type of preparation will you require of the students : NUR 680- What is the optimal number of clinical hours per day for a beginning student? What type of preparation will you require of the students?
Analyze El Pollo Loco Holdings : Analyze El Pollo Loco Holdings, Inc. El Pollo Loco Holdings, Inc. (LOCO), Spanish for "The Crazy Chicken," operates almost 500 restaurants
Name the five steps to importation of commercial goods : Describe a conflict of interest that a customs broker might face and suggest a resolution. Name the five steps to an importation of commercial goods.

Reviews

Write a Review

Data Structure & Algorithms Questions & Answers

  Implement an open hash table

In this programming assignment you will implement an open hash table and compare the performance of four hash functions using various prime table sizes.

  Use a search tree to find the solution

Explain how will use a search tree to find the solution.

  How to access virtualised applications through unicore

How to access virtualised applications through UNICORE

  Recursive tree algorithms

Write a recursive function to determine if a binary tree is a binary search tree.

  Determine the mean salary as well as the number of salaries

Determine the mean salary as well as the number of salaries.

  Currency conversion development

Currency Conversion Development

  Cloud computing assignment

WSDL service that receives a request for a stock market quote and returns the quote

  Design a gui and implement tic tac toe game in java

Design a GUI and implement Tic Tac Toe game in java

  Recursive implementation of euclids algorithm

Write a recursive implementation of Euclid's algorithm for finding the greatest common divisor (GCD) of two integers

  Data structures for a single algorithm

Data structures for a single algorithm

  Write the selection sort algorithm

Write the selection sort algorithm

  Design of sample and hold amplifiers for 100 msps by using n

The report is divided into four main parts. The introduction about sample, hold amplifier and design, bootstrap switch design followed by simulation results.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd