Introduction to scripting

 

Scenario
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 your designs to help you develop the
code for the game. In your code, you have been asked to include clear naming convenons for funcons, 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 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 opon of whether or not to obtain the item in each room.
Direcons
In Project One, you designed pseudocode or flowcharts for the two main acons 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 addional components beyond your original designs to help your game work as intended. You
will develop all of your code in one Python (PY) file, tled “TextBasedGame.py.”
IMPORTANT: The direcons include sample code from the dragon-themed game. Be sure to modify any sample code so that it fits the theme of your game.
1. First, create a new file in the PyCharm integrated development environment (IDE), tle it “TextBasedGame.py,” and include a comment at the top with your full name.
As you develop your code, remember that you must use industry standard best pracces including in-line comments and appropriate naming convenons to enhance
the readability and maintainability of the code.
2. In order for a player to navigate your game, you will need to develop a funcon or funcons using Python script. Your funcon or funcons should do the following:
Show the player the different commands they can enter (such as “go North”, “go West”, and “get

  • ”).
    Show the player’s status by idenfying the room they are currently in, showing a list of their inventory of items, and displaying the item in their current room.

    Sample Solution

    arge. So expenses will go up and all property proprietors – regardless of whether they have school age kids or not – will, truth be told, pay for the free school. No, let me revamp that. They will pay for the free educational cost while prospective school dropouts use understudy advances. At that point, when the understudies going to “free” school default on their understudy credit, the citizen will indeed bear the weight.
    We should back up a moment and investigate one reason Governor Cuomo states free school is essential: “devastating understudy obligation.” Why isn’t anybody tending to the essential supporter of understudy obligation? Schools and colleges are not permitted to restrict understudy advance sums. On the off chance that an understudy is qualified for an advance – regardless of whether they need it or not to cover educational cost – they are permitted to obtain.
    As indicated by the New York Times article, “Current full-time educational cost at four-year State University of New York schools for occupants is $6,470. . . . The state likewise gives almost $1 billion in help through its educational cost help program, which has a balanced gross salary point of confinement of just shy of $100,000. Those honors top out at $5,165; numerous awards are littler.” So an understudy may just need to cover $1,305 of their educational cost (and that is expecting they are not utilizing a Federal Pell Grant), however they can get up to $23,000 more than four years. What’s more, the school can’t prevent them from acquiring – despite the fact that when the understudy defaults on the advance, the school is considered responsible. It additionally makes one wonder, is a school training justified, despite all the trouble?
    Free school can possibly undermine tirelessness. Right now, most universities charge educational cost when an understudy rehashes a course. We should talk for a moment about the elements on a school grounds. At the point when looked with testing and thorough classes, a few understudies will acknowledge they are in peril of coming up short and play the “W” card. As in pulling back from the class. Contingent upon the reviewing framework at the school/college, a “W” evaluation may not factor into the evaluation point normal estimation. Be that as it may, pulling back from a class has money related con

    This question has been answered.

    Get Answer
    WeCreativez WhatsApp Support
    Our customer support team is here to answer your questions. Ask us anything!
    👋 Hi, Welcome to Compliant Papers.