LE c lA Y/N
Pulse
For this milestone, you will be submitting a
working draft of the code for a simplified
version of the text-based game that you
v
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.
1. 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 ente
commands to either move between
ooms 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. A video
transcript is available: Transcript fo
Milestone Simplified Dragon Text
Game Video.
1] @)
EVA) LH CRA FY
MT] (=)
IMPORTANT: The “Move Between
Rooms” process in the Milestone
Simplified Text Game Flowchart is
intentionally vague. You designed a
more detailed flowchart o
pseudocode for this process as a part
of your work on Project One. Think
about how your design will fit into
this larger flowchart.
2. In PyCharm, create a new code file
titled “ModuleSixMilestone.py.” At
the top of the file, include a comment
with your name. As you develop you
code, you must use industry standard
est practices, including in-line
comments and appropriate naming
conventions, to enhance the
eadability and maintainability of the
code.
3. Next, copy the following dictionary
into your PY file. This dictionary links
ooms to one another and will be
used to store all possible moves pe
oom, in order to properly validate
player commands (input). This will
VA,
~
LH CRA FY
Pulse
code.
. Next, copy the following dictionary
into your PY file. This dictionary links
ooms to one another and will be
used to store all possible moves pe
oom, in order to properly validate
player commands (input). This will
allow the player to move only
etween rooms that are linked.
Note: For this milestone, you are
eing given a dictionary and map fo
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
create your own dictionary based on
your designs.
#A dictionary for the simplified dragon
#The dictionary links a room to other
ooms = {
'Great Hall': {'South': 'Bedroo
'Bedroom': {'North': 'Great Hal
'Cellar': {'West': 'Bedroom'}
EVA) LH CRA FY
MT] (=)
Note: For this milestone, you are
eing given a dictionary and map fo
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
create your own dictionary based on
your designs.
#A dictionary for the simplified dragon
#The dictionary links a room to other
ooms = {
'Great Hall': {'South': 'Bedroo
'Bedroom': {'North': 'Great Hal
'Cellar': {'West': 'Bedroom'}
Great Hall
North South
East
EVA) LH CRA FY
MT] (=)
East
Bedroom Cella
West
4. Next, you will develop code to meet
the required functionality, by
prompting the player to ente
commands to move between the
ooms or exit the game. To achieve
this, you must develop the following:
o A gameplay loop that includes:
» Output that displays the
oom the player is cu
ently
in
» Decision
anching that
tells the game how to
handle the different
commands. The commands
can be to either move
etween rooms (such as go
North, South, East, o
West) or exit.
= If the player enters a
@) <