Text-Based Adventure: Store
http://learnpythonthehardway.org/book/ex39.html
Complete Unit 5 Part 2: A Day at the Supermarket
1. Change the fruit into things your player might want to buy in a game (ideas: sword, armor, clothes, potion, amulet, driver's license, mirror, rope, matches, flashlight, etc)
2. Give each item a price and a stock (or you can choose a different Dictionary Key, like weight if the player cannot carry too much weight, or anything you can imagine).
3. Allow the user to decide what to buy from a list.
4. Limit what the user can do (give them a limited amount of gold, or have their backpack only hold a few items, or have the stock of the store be limited, or limit how much weight they can carry).
Extra points:
Allow the user to remove items and throw them away.
Hint:
Use my .py for ideas, but you must make yours unique.
Complete Unit 5 Part 2: A Day at the Supermarket
1. Change the fruit into things your player might want to buy in a game (ideas: sword, armor, clothes, potion, amulet, driver's license, mirror, rope, matches, flashlight, etc)
2. Give each item a price and a stock (or you can choose a different Dictionary Key, like weight if the player cannot carry too much weight, or anything you can imagine).
3. Allow the user to decide what to buy from a list.
4. Limit what the user can do (give them a limited amount of gold, or have their backpack only hold a few items, or have the stock of the store be limited, or limit how much weight they can carry).
Extra points:
Allow the user to remove items and throw them away.
Hint:
Use my .py for ideas, but you must make yours unique.
shopping_and_inventory_-_needs_remove.py | |
File Size: | 2 kb |
File Type: | py |