subject

Your instructor should provide a text file named wizard_all_items. txt that contains a list of all the items that a wizard can carry.

this is the text file provided (list of items user can interact with):

a wooden staff
a wizard hat
a cloak of invisibility
some elven bread
an unknown potion
a scroll of uncursing
a scroll of invisibility
a crossbow
a wizard's cloak
when the user selects the walk command, the program should read the items from the file, randomly pick one, and give the user the option to grab it.

your program should create another file that stores the items that the wizard is carrying. make sure to update this file every time the user grabs or drops an item.

the wizard can only carry four items at a time.

for the drop command, display an error message if the user enters an invalid number

for the item.

ansver
Answers: 3

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 05:00
Which two editions of windows 7 support 64 bit cpus? choose two out of professional, business, starter, or home premium.
Answers: 1
question
Computers and Technology, 22.06.2019 19:30
When creating a presentation in libre office impress, where does the editing of slides take place?
Answers: 1
question
Computers and Technology, 22.06.2019 22:00
During physical science class ben and jerry connected three identical lightbulbs in parallel to a battery where happens when ben removes one of the lightbulbs from it’s socket
Answers: 2
question
Computers and Technology, 23.06.2019 12:30
What is the difference between the internet and the world wide web?
Answers: 1
You know the right answer?
Your instructor should provide a text file named wizard_all_items. txt that contains a list of all t...
Questions
question
Mathematics, 15.04.2020 19:25