Asked by tiathornsberry
Prompt For this milestone, you will be submitting a working draft...
Prompt
For this milestone, you will be submitting a working draft of the code for a simplified version of the text-based game that you are developing for Project Two. You will focus on displaying how a room dictionary works with the "move" commands. This will include the if, else, and elif statements that move the adventurer from one room to another.
- Before beginning this milestone, it is important to understand the required functionality for this simplified version of the game. The game should prompt the player to enter commands to either move between rooms or exit the game. Review the Milestone Simplified Dragon Text Game Video and the Milestone Simplified Text Game Flowchart to see an example of the simplified version of the game.
- IMPORTANT: The "Move Between Rooms" process in the Milestone Simplified Text Game Flowchart is intentionally vague. You designed a more detailed flowchart or pseudocode for this process as a part of your work on Project One. Think about how your design will fit into this larger flowchart.
- In PyCharm, new code file titled "ModuleSixMilestone.py." At the top of the file, include a comment with your name. As you develop your code, you must use industry standard best practices, including in-line comments and appropriate naming conventions, to enhance the readability and maintainability of the code.
- Next, copy the following dictionary into your PY file. This dictionary links rooms to one another and will be used to store all possible moves per room, in order to properly validate player commands (input). This will allow the player to move only between rooms that are linked.
- Note: For this milestone, you are being given a dictionary and map for a simplified version of the dragon-themed game. Make sure to read the code carefully so that you understand how it works. In Project Two, you will own dictionary based on your designs.
Below is my start to my story. I just need to write the code for the above project that goes with my story about moving between bedrooms.
This story is about a queen and a king where the queen goes to a hidden part of the castle to find out about a devil living in this area. She goes in and gets trapped in the same room as the devil and cannot get out. The king needs to go save the queen.
Item:
Map
Sword
Magic drink
Secret room key
Storyboard (Description and Map)
[Include a paragraph description of your theme, storyline, rooms, items, and villain here. Be sure to also complete the map below with your rooms and items. You may add more rooms and directions if you like. Use the Insert menu and select Shapes to add textboxes and arrows.]
Rooms:
1st- start gate no items
2nd- Bedroom (secret room key)
3rd- study (map)
4th-hall (magic sword)
5th- kitchen has food
6th- secret room (magic drink)
7th- armoury- has shield in it
8th - dungon with the devil
Pseudocode or Flowchart for Code to "Move Between Rooms"
Start->ask direction->input-> valid? (no goes back to ask, yes goes on) -> next room-> activity available (no goes back to ask, yes moves on) -> ask activity-> valid? (no goes back to ask, yes moves on) -> perform activity-> stop
Pseudocode or Flowchart for Code to "Get an Item"
Start-> enter room-> display item -> select item-> add item or leave it-> input-> save inventory-> stop
Answered by saivaraprasad7659
nec facilisis. Pellentes
ultrices ac magna. Fusce dui lectus, congue vel laoreet ac, dictum vitae odio. Donec aliquet. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nam lacinia pulvinar tortor nec facilisis. Pellentesque dapibus efficitur laoreet. Nam risus ante, dapibus a molestie consequat, ultrices ac magna.Unlock full access to Course Hero
Explore over 16 million step-by-step answers from our library
Subscribe to view answer, dictum vitae odio. Don
s a molestie consequat, ultrices ac m
congue ve
onec aliquet. Lorem ipsum dolor sit a
ia pulvinar tortor nec facilisis. Pellentesque d
e vel laoreet ac, dictum vitae odio. Done
llentesque dapibus efficitur laoreet. Nam r
Donec aliquet. Lorem ipsum dolor sit amet, consec
ongue vel laoreet ac, dictum vitae odio. Donec al
ipiscing elit. Nam lacinia pulvinar tortor
o
ng elit. Nam lacinia pulvinar tortor nec facilisis. Pellentesque dapibus efficitur
Fusce dui lectus, congue vel laoreet ac, dictum vitae odio. Donec aliquet. Lorem ipsum dol
consectetur adipiscing elit. Nam lacinia pulvinar to
ec aliquet. Lorem
ia pulvinar tortor n
m ipsum dolor
ultrices ac magna. Fusce dui lectus, con
cing elit.
facilisis. Pellentesque dapibus efficitur laoreet. Nam risus ante, dapibus a molestie consequa
risus ante, dapibus a mo
onec aliquet. Lorem i
consectetur adipiscing elit. Nam la
usce dui lectus, congue vel laoreet ac, dictum vitae odio. Don
a. Fusce dui lectus, congue vel laoreet
entesque dapibus efficitur laoreet. Nam risus ante, dapibus a molestie consequat,
ongue vel laoreet ac, dictum vitae
itur laoreet. Nam risus ante, dapibus a molestie
Fusce dui lectus, congue vel laoreet ac, dictum vitae odio. Donec aliquet
molestie consequat, ultrices ac magna. Fusce dui le
ctum vitae odio. Donec aliquet. Lorem ipsum dolor sit amet, consectetur
ng elit. Nam lacinia pulvinar tortor nec facilisis. Pellentesque dapibus effici
, dictum vitae odio. Donec al
inia pulvinar tortor nec fac
, dictum vita
ipsum dolor sit amet, consectetur adipiscing elit. Nam lacinia pulvinar tortor nec faci
usce dui lectus, congue vel l
lestie consequat, ul