IT 140 Project 1 PDF

Title IT 140 Project 1
Author Faiza Salman
Course Perspectives in the Humanities
Institution Southern New Hampshire University
Pages 4
File Size 127.9 KB
File Type PDF
Total Downloads 54
Total Views 134

Summary

FIRST PROJECT FOR COURSE IT-140...


Description

IT-140 5-3 Project one Faiza Salman Text Game Storyboard Storyboard: Sarah’s life is in danger. She is trapped in her house because a guy is hiding in the basement of her house, trying to kill her. It’s snowing outside, and the temperature is freezing cold. In order to save herself, she has to get out of the house as fast as she could, but before leaving, she has to grab few things from the house to keep her safe and warm. Sarah needs a coat from her closet to keep her warm outside, her cell phone from the master bedroom to call for help, a cell phone charger from the family room in case her phone’s battery dies, a knife from the kitchen for her protection, an umbrella from the study since it’s snowing outside and shoes from the foyer to wear outside. She will start from the living room because she is sitting there and navigate through rest of the house to grab all the items using the following map.

Here is the map of the house: East Closet Item: Coat

Master bedroom Item: Cell phone West

North

South

Dining Room East Family Room Item: Cell phone charger

Foyer Item: Shoes

North

South

East

West

Kitchen Item: Knife West North

South

East Study Item: Umbrella West

Basement The Predator!

Pseudocode for Code to “Move Between Rooms”: ‘Let’s begin from the Family Room’ Start Player inputs a direction: IF player is in Family Room IF direction is North Enter Master Bedroom ELIF direction is South Enter Study ELIF direction is East Enter Kitchen ELIF direction is West Enter Foyer ELSE Output shows Invalid Direction Player inputs a direction: IF player is in Master Bedroom IF direction is South Enter Family Room ELIF direction is East Enter Closet ELSE Output shows Invalid Direction Player inputs a direction: IF player is in Closet IF direction is West Enter Master Bedroom ELSE Output shows Invalid Direction Player inputs a direction: IF player is in Foyer IF direction is East Enter Family Room ELSE Output shows Invalid Direction Player inputs a direction: IF player is in Study IF direction is North Enter Family Room ELIF direction is East 2

Enter Basement ELSE Output shows Invalid Direction Player inputs a direction: IF player is in Basement IF direction is West Enter Study ELSE Output shows Invalid Direction Player inputs a direction: IF player is in Kitchen IF direction is North Enter Dining Room ELIF direction is West Enter Family Room ELSE Output shows Invalid Direction Player inputs direction: If player is in Dining Room If direction is South Enter Kitchen Else: Output shows Invalid Direction End

Pseudocode for Code to “Get an Item”: Start When Player enters each room Display each inventory item [Coat, cell phone, cell phone charger, knife, umbrella, shoes] IF item is in room Display item name User selects add or leave item IF add Put in inventory ELIF item already added to inventory Leave item ELIF leave item Leave item ELSE Leave room 3

End

4...


Similar Free PDFs