I have attached the files on how my assignment should be done according to the guidelines for my IT140 class
IT 140 Design Document Template IT 140 Design Document Template Instructions Fill out the sections below. Be sure to remove the bracketed text before submitting your Design Document. [Insert Your Name Here] 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.] East North West East South West East South North West East North South West Pseudocode or Flowchart for Code to “Move Between Rooms” [Write pseudocode or create/insert your flowchart here.] Pseudocode or Flowchart for Code to “Get an Item” [Write pseudocode or create/insert your flowchart here.] 1 IT 140 Sample Dragon Text Game Output 1 IT 140 Sample Dragon Text Game Output Overview In Projects One and Two, you will be designing and then developing a text-based game with a theme of your choice. This handout shows input and output from the sample Dragon Text Game. This will help give you an understanding of how a text-based game works. In this dragon-themed game, the player is trying to find all the items (book, armor, helmet, sword, shield, and peanut butter sandwich) before running into the villain (the dragon). You can also see a sample execution of this game in the Sample Dragon Text Game Walkthrough, which is located in the Supporting Materials sections of the projects. Sample Output Below is sample output of the program, with the player’s input shown in bold font. You will see examples of the game’s output in response to different commands such as moving between rooms or getting items. You will also see examples of input validation, or how the game responds to invalid commands such as getting an item that is not in the current room, moving in a direction that is not valid, or entering a command in the wrong format. As a reminder, the output here is just a sample. The output for your game does not have to exactly match what is here. Dragon Text Adventure Game Collect 6 items to win the game, or be eaten by the dragon. Move commands: go South, go North, go East, go West Add to Inventory: get 'item name' You are in the Great Hall Inventory : [] --------------------------- Enter your move: go North You are in the Dungeon Inventory : [] You see a Sword --------------------------- Enter your move: get Sword Sword retrieved! You are in the Dungeon Inventory : ['Sword'] --------------------------- Enter your move: get Shield Can’t get Shield! You are in the Dungeon Inventory : ['Sword'] --------------------------- Enter your move: 2 go South You are in the Great Hall Inventory : ['Sword'] --------------------------- Enter your move: go East You are in the Kitchen Inventory : ['Sword'] You see a Sandwich --------------------------- Enter your move: Sandwich Invalid Input! You are in the Kitchen Inventory : ['Sword'] You see a Sandwich --------------------------- Enter your move: get Sandwich Sandwich retrieved! You are in the Kitchen Inventory : ['Sword', 'Sandwich'] --------------------------- Enter your move: go South You can’t go that way! You are in the Kitchen Inventory : ['Sword', 'Sandwich'] --------------------------- Enter your move: go North You are in the Dining Room Inventory : ['Sword', 'Sandwich'] You see a Dragon NOM NOM…GAME OVER! Thanks for playing the game. Hope you enjoyed it. IT 140 Sample Dragon Text Game Output Overview Sample Output IT 140 Sample Dragon Text Game Storyboard 1 IT 140 Sample Dragon Text Game Storyboard The dragon has taken over the dining room and your party guests will arrive in a matter of hours. You need to defeat the dragon before your guests arrive, but before you fight the dragon you will need a few items. You will need a book from the library to learn how to defeat the dragon, armor from the bedroom to protect your body, a helmet from the cellar to protect your head, a sword from the dungeon to stab the dragon, a shield from the gallery to protect yourself from the dragon’s fire, and finally a peanut butter sandwich from the kitchen to gather enough energy to defeat the dragon. Here is a map of the castle rooms and items to help navigate your quest: Gallery Item: Shield Dungeon Item: Sword Dining Room Dragon! Kitchen Item: Sword Cellar Item: Helmet Library Item: Book Bedroom Item: Armor Great Hall North North North South South South East East East East West West West West IT 140 Sample Dragon Text Game Storyboard IT 140 Transcript for Sample Dragon Text Game Walkthrough IT 140 Transcript for Sample Dragon Text Game Walkthrough [00:00:06.03] Hello. In this video, you will see a sample text-based game, similar to the one that you will design and code for Projects One and Two. This sample game has a dragon theme, but you will choose your own theme for the game that you design. This video will help you understand how a text-based game works, and you'll get a chance to see the sample dragon text game in action. [00:00:27.47] The text game involves a player entering commands to move to different rooms, or get different items. The goal of the game is for the player to get all of the items before they encounter the villain. For Project One, you'll be designing the text-based game. As a part of your design, you will be asked to create a storyboard, which includes a description of the theme, as well as a map. You will also be asked to create pseudocode or a flowchart to help you with the two major processes in the game—the process that allows the player to move between rooms and that allows the player to get items from different rooms. [00:01:05.43] In Project Two, you will move beyond your designs and actually develop the code for the game. But before we get into that, let's first look at the sample storyboard for the game, which you can also find in the Project One Supporting Materials section. [00:01:22.49] As you can see, there's a short paragraph that describes the theme of the game—in this case, the dragon theme. But again, you will be creating something on your own designs. And please choose something that you're interested in. Perhaps it could be space. It could be a spy theme. You could choose anything that has the idea of rooms, items, and a villain, so make sure to choose something that interests you. In this case, all of the different items and the rooms sort of fit with the dragon theme. It's sort of like you're in a castle, trying to navigate different items that you might need to defeat the villain. [00:01:51.77] Once you've described the theme and the different items and rooms in your game, you want to lay them out in this map. And you've been given a blank map in either the Design Document or the Design Presentation Template, depending on which way you want to present your designs. And you can fill it in with all of the different rooms and items that go with your theme. [00:02:11.85] So you can see here that all of the different rooms are laid out. And you can clearly see the item that's in each room. The great hall, or the start room, does not have an item in it. And the only other room that doesn't have an item is the dining room, which contains the villain—in this case, the dragon. You can see that this map also lays out the different directions, so that you can easily see how the rooms are connected to one another. This is going to be really helpful when you actually get to Project Two and start both developing and testing your code. [00:02:43.07] Speaking of the code, let's open up PyCharm where I have some sample code. You'll notice that there is some actual code in here. Some of this has actually been given to you in [the] Project Two directions, as well, for you to use as a sample and a reference. But there's a lot of spaces where the code has been removed and just commented out. That was just for the purposes of this video. [00:03:02.33] So we start with a couple of different functions. You can organize it in a different way, perhaps as part of one function. In this game, I've used two functions. The basic functionality, though, is that I want to tell the player the basic rules of the game. So in this case, it's that the player knows that they have to collect six items to win the game, or they will be eaten by the dragon. I have to be able to tell them the different commands that they can make, such as “go south,” “go north,” “go east,” “go west,” and “get” whatever the item is in the room that they're in, so that they can add it to the inventory. [00:03:37.48] I also have this separate function here which, again, most of it is commented out. And it would show the current room of the player, their inventory, and the item that's in the room that they're currently in, if one exists. [00:03:50.16] Next, the main gameplay actually takes place in the “main()” function. So you can see here, I have my “main()” function defined. And then I would have a section of code where I would define the inventory, which starts off as empty, because the player has not collected any items. [00:04:05.92] Then I have a dictionary. And a sample version of this has also been included in the Project Two guidelines as well. Again, you will have to customize this, because it needs to fit the theme of your game. So you can see here that using your map that you did as a part