Great Deal! Get Instant $10 FREE in Account on First Order + 10% Cashback on Every Order Order Now

233 ® © [IRE WIAYA

1 answer below »
233 ® © [IRE WIAYA
MT] (=)

cenario
You work for a small company that creates
text-based games. You recently pitched
your design ideas for a text-based
adventure game to your team. Your team
was impressed by all of your designs, and
would like you to develop the game! You
will be able to use the map and the
pseudocode or flowcharts from you
designs to help you develop the code fo
the game. In your code, you have been
asked to include clear naming conventions
for functions, variables, and so on, along
with in-line comments. Not only will these
help you keep track as you develop, but
they will help your team read and
understand your code. This will make it
easier to adapt for other games in the
future.
Recall that the game requires players to
type in a command line prompt to move
through the different rooms and get items
from each room. The goal of the game is
for the player to get all of the items before
NN the room that contains the
ARENAS) [IRE WIAYA
MT] (=)

Recall that the game requires players to
type in a command line prompt to move
through the different rooms and get items
from each room. The goal of the game is
for the player to get all of the items before
encountering the room that contains the
villain. Each step of the game will require a
text output to let the player know where
they are in the game, and an option of
whether or not to obtain the item in each
oom.
Directions
In Project One, you designed pseudocode
or flowcharts for the two main actions in
the game: moving between rooms and
gathering items. In this project, you will
write the code for the full game based on
your designs. You will also need to include
some additional components beyond you
original designs to help your game work as
intended. You will develop all of your code
in one Python (PY) file, titled
“TextBasedGame.py."
1] @)

ART NE AO) XN = al 75%ua
MT] (=)

1. First, create a new file in the
PyCharm integrated development
environment (IDE), title it
“TextBasedGame.py,” and include a
comment at the top with your full
name. As you develop your code,
emember that you must use industry
standard best practices including in-
line comments and appropriate
naming conventions to enhance the
eadability and maintainability of the
code.
2. In order for a player to navigate you
game, you will need to develop a
function or functions using Python
script. Your function or functions
should do the following:
o Show the player the different
commands they can enter (such
as “go North”, “go West”, and
“get [item Name]”).
o Show the player's status by
identifying the room they are
cu
ently in, showing a list of
their inventory of items, and

@)
ART NE AO) XN = al 75%ua
MT] (=)

1. First, create a new file in the
PyCharm integrated development
environment (IDE), title it
“TextBasedGame.py,” and include a
comment at the top with your full
name. As you develop your code,
emember that you must use industry
standard best practices including in-
line comments and appropriate
naming conventions to enhance the
eadability and maintainability of the
code.
2. In order for a player to navigate you
game, you will need to develop a
function or functions using Python
script. Your function or functions
should do the following:
o Show the player the different
commands they can enter (such
as “go North”, “go West”, and
“get [item Name]”).
o Show the player's status by
identifying the room they are
cu
ently in, showing a list of
their inventory of items, and

@)
ART NE AO) [J HEPA 7
MT] (=)

2. In order for a player to navigate you
game, you will need to develop a
function or functions using Python
» script. Your function or functions
should do the following:
o Show the player the different
commands they can enter (such
as “go North”, “go West”, and
“get [item Name]”).
o Show the player's status by
identifying the room they are
cu
ently in, showing a list of
their inventory of items, and
displaying the item in thei
cu
ent room.
You could make these separate
functions or part of a single function,
depending on how you prefer to
organize your code.
#Sample function showing the goal of the
def show_instructions():
#print a main menu and the commands
print("Dragon Text Adventure Game")
print("Collect 6 items to win the gan
print("Move commands: go South, go Nc
print("Add to Inventory: get 'item na
#In this solution, the player's status w
#You may organize your functions differe
Answered 1 days After Oct 14, 2022

Solution

Sathishkumar answered on Oct 15 2022
47 Votes
SOLUTION.PDF

Answer To This Question Is Available To Download

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here