Can you please help do this? 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, remember that you must use industry standard best practices including in-line comments and appropriate naming conventions to enhance the readability and maintainability of the code. In order for a player to navigate your game, you will need to develop a function or functions using Python script. Your function or functions should do the following: Show the player the different commands they can enter (such as "go North", "go West", and "get [item Name]"). Show the player's status by identifying the room they are currently in, showing a list of their inventory of items, and displaying the item in their current room.
Can you please help do this?
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, remember that you must use industry standard best practices including in-line comments and appropriate naming conventions to enhance the readability and maintainability of the code.
- In order for a player to navigate your game, you will need to develop a function or functions using Python script. Your function or functions should do the following:
- Show the player the different commands they can enter (such as "go North", "go West", and "get [item Name]").
- Show the player's status by identifying the room they are currently in, showing a list of their inventory of items, and displaying the item in their current room.
My Theme: Alien Encounters
- You are a space trooper on a routine mission when suddenly an alien intruder breaches the ship cutting off the lights, your mission is to find all the items and exterminate the alien guest
· The rooms that I have are Cockpit, Hallway, Storage Room, Lower Deck, Weapons Quarters, Weapons Quarters Continued, Sleeping Quarters, Dinning Quarters, and Cargo Bay.
· The Items that can be gathered are Flash Light, Radio, Lasor Sword, Night Vison Goggles, Body Armor, and a Body Decoy.
· The villain is an Alien who breached the ship during a routine mission.
PSUEDOCODE:
INTRO: text setting the scene, two options SOUTH or EAST
IF EAST, player enters a hallway with a door at the end (No Items), two options EAST
or WEST
IF WEST, enters back into starting area
IF EAST, enters Storage Room
option collect Flash Light item
IF WEST (back into hallway and then back into Cockpit)
IF SOUTH, enters Lower Deck, finds Radio, two options NORTH or NORTH
option: Collect Radio
IF NORTH: enters back into Cockpit
IF SOUTH: enters Weapon Quarters, four options NORTH, SOUTH, EAST,
Or WEST
option collect Lasor Sword
IF SOUTH: Continues through Weapon Quarters coming across Body Armor, two options NORTH or EAST
option collect Body Armor
IF NORTH: re-enters first section of Weapon Quarters
IF EAST: enters Cargo Bay were there is a Body Decoy, two options NORTH or WEST
IF WEST: enters back into Weapon Quarters continued
IF NORTH: enters Dining Quarters, two outcomes
IF player has obtained all items (FLASH LIGHT, RADIO, LASOR SWORD, NIGHT VISON GOGGLES, BODY ARMOR, BODY DECOY)
Player Wins and Alien is defeated
IF player has NOT obtained all items
Player Loses and is defeated GAME OVER
IF WEST: enters Sleeping Quarters
option collect Night Vison Goggles
IF EAST: re-enters Weapon Quarters
IF EAST: enters Dining Quarters, two outcomes
IF player has obtained all items (FLASH LIGHT, RADIO, LASOR SWORD, NIGHT VISON GOGGLES, BODY ARMOR, BODY DECOY)
Player Wins and Alien is defeated
IF player has NOT obtained all items
Player Loses and is defeated GAME OVER
Subject: Python Programming
Trending now
This is a popular solution!
Step by step
Solved in 4 steps with 3 images