Question: Make sure code in python and follow steps PLEASE I will give tip for good answers Although not everyone consider s game design a worthwhile
Make sure code in python and follow steps PLEASE I will give tip for good answers
Although not everyone considers game design a worthwhile activity, text
adventure games (in which a player navigates a space using a simple terminal
interface) can serve as a useful analogue for the more complex graph navigation
problems frequently encountered in computer science. For this assignment, you
will be designing a small world, creating an adjacency list representation of that
world, and developing a system allowing a user to interact with it in simple ways.
In order to complete this task, you will need to:
• design a map that is physically realizable1 (i.e., no teleportation) containing at least 20 "areas"
• ensure that the graph corresponding to your map is neither a simple grid nor totally random2
Your submission for this assignment:
• must be a source code file with filename 'comp1405_f21_#########_assignment_10.py'
• must display (blitted to a pygame window) an image of the map you have created3
• must be represented efficiently in code using one-dimensional and multidimensional lists
• must use an adjacency list4 representation to store the graph corresponding to your map
• must use a post-condition loop to describe the current area (and exits) and process user input
• must describe the current area using text that includes both a name and a description5
• must describe exits using complete sentences and directional words6 (e.g., "east", "west", etc.)
• must store area names and area descriptions in separate one-dimensional lists
• must include at least three items that the user can pick up using the single word "take"
• must also support the "help", "quit", and "inventory"7 single word instructions from the user
1 A "physically realizable" map would correspond to a graph you could draw on a piece of paper without any crossing edges 2 The map must contain both indoor and outdoor areas and will incur penalties if it is poorly designed 3 And naturally this entails that you must upload your map image alongside your submission when you upload to Brightspace 4 An adjacency matrix will NOT be acceptable and will result in your assignment receiving a mark of zero 5 The names and descriptions of each area must be unique, and the descriptions must each be at least two sentences long 6 A complete list of these would be "north", "northeast", "east", "southeast", "south", "southwest", "west", and "northwest" 7 If the user enters the "inventory" command, the list of items that have been "taken" by the user should be displayed
Step by Step Solution
3.56 Rating (160 Votes )
There are 3 Steps involved in it
code in pythonwe follow steps for this question if name main while True printWelcome to the Adventure Game printAs an avid traveler you have decided t... View full answer
Get step-by-step solutions from verified subject matter experts
