0% found this document useful (0 votes)
36 views2 pages

Testing Table

The document compares the expected output of a text-based adventure game to the actual output for different user inputs and scenarios. It identifies some cases where the expected and actual outputs differed, such as when an invalid room or action was provided, or a non-yes/no answer was given. The differences are usually handled by asking the user if they want to continue in the game rather than returning an error.

Uploaded by

api-353207021
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
36 views2 pages

Testing Table

The document compares the expected output of a text-based adventure game to the actual output for different user inputs and scenarios. It identifies some cases where the expected and actual outputs differed, such as when an invalid room or action was provided, or a non-yes/no answer was given. The differences are usually handled by asking the user if they want to continue in the game rather than returning an error.

Uploaded by

api-353207021
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 2

Data Expected Actual

name== ellie Ellie Ellie


warriortype== kni Knight Knight
warriortype== ez Mysterious, unknown Mysterious, unknown
warrior warrior
play== yep You are currently at the You are currently at the
gateway, where would you gateway, where would you
like to explore? like to explore?
play== nah You still had three lives left You still had three lives left
play== um Would you like to venture Would you like to venture
further into the castle? further into the castle?
current_room()[0]== You have arrived at the You have arrived at the
gateway great hall great hall
move== great hall
current_room()[0]== You cannot reach that room Would you like to venture
gateway from your location further into the castle? *
move== library
current_room()[0]== You cannot reach that room You cannot reach that room
gateway from your location from your location
move== tower
inventory== ornamental You used your ornamental You used your ornamental
axe axe to kill the beast axe to kill the beast
ans== yep
beast==griffin You were attacked by the You were attacked by the
lives==3 griffin. You lost one life. Now griffin. You lost one life. Now
ans==no you have 2 lives left. you have 2 lives left.
inventory==unicorn horn Would you like to fight this Would you like to venture
ans==what beast with your unicorn further into the castle? **
horn?
paper== yes You pick up the paper You pick up the paper
paper== no Would you like to venture Would you like to venture
further into the castle? further into the castle?
paper== maybe Would you like to venture Would you like to venture
further into the castle? further into the castle?
paper2== yes You walk back down the You walk back down the
staircase of the tower staircase of the tower
paper2== no Would you like to venture Would you like to venture
further into the castle? further into the castle?
paper2== idk Would you like to venture Would you like to venture
further into the castle? further into the castle?
paper3== left You turn left and make your You turn left and make your
way along way along
paper3== right You take the path to the You take the path to the
right right
paper3== straight After almost an hour of After almost an hour of
walking walking
paper3== none Would you like to venture Would you like to venture
further into the castle? further into the castle?
weapon_choose== You draw your crossbow You draw your crossbow
crossbow End of game End of game
weapon_choose== lance You lost the fight with the You lost the fight with the
ogre ogre
weapon_choose== spear You reach for your spear You reach for your spear
weapon_choose== dagger Would you like to venture Error ***
further into the castle?
paper3a== run You managed to outrun the You were unable to outrun
beasts OR You were unable the beasts
to outrun the beasts
paper3a== fight There are five beasts There are five beasts
paper3a== swim Would you like to venture Would you like to venture
further into the castle? further into the castle?

How problems were fixed/ why expected output differed from actual output:
*If the room is not defined in the classes the program will ask if the player still wants to move
rooms
**If answer other than that defined as yes or no is given, it will assume the answer is yes
and fight the beast and ask to continue the game
*** I fixed the program so that any answer not identified as lance, crossbow or spear will
default to lance

You might also like