├── LICENSE.txt ├── README.md ├── code ├── ch10_intermezzo │ ├── game.py │ ├── items.py │ └── player.py ├── ch11_world │ ├── game.py │ ├── items.py │ ├── player.py │ └── world.py ├── ch12_enemies │ ├── enemies.py │ ├── game.py │ ├── items.py │ ├── player.py │ └── world.py ├── ch13_world2 │ ├── enemies.py │ ├── game.py │ ├── items.py │ ├── player.py │ └── world.py ├── ch14_economy │ ├── enemies.py │ ├── game.py │ ├── items.py │ ├── npc.py │ ├── player.py │ └── world.py ├── ch15_endgame │ ├── enemies.py │ ├── game.py │ ├── items.py │ ├── npc.py │ ├── player.py │ └── world.py ├── ch2_first │ └── game.py ├── ch3_io │ ├── echo.py │ └── game.py ├── ch4_decisions │ └── game.py ├── ch5_functions │ ├── game.py │ ├── hello.py │ └── hello_name.py ├── ch6_lists │ └── game.py ├── ch7_loops │ ├── factors.py │ ├── favorites.py │ ├── favorites_pretty.py │ ├── favorites_pretty_counter.py │ ├── favorites_pretty_enumerate.py │ ├── favorites_pretty_range.py │ └── game.py ├── ch8_objects │ ├── census.py │ └── game.py ├── ch9_exceptions │ ├── game.py │ └── validate.py └── hw-solutions │ ├── ch2_first │ └── calculator.py │ ├── ch3_io │ └── echo.py │ ├── ch4_decisions │ └── ages.py │ ├── ch5_functions │ ├── calculator.py │ ├── doubler.py │ └── user_calculator.py │ ├── ch6_lists │ └── favorites.py │ ├── ch7_loops │ ├── greek.py │ ├── multiplication.py │ └── user_calculator.py │ ├── ch8_objects │ └── food.py │ └── ch9_exceptions │ ├── user_calculator.py │ └── vehicles.py └── contributing.md /LICENSE.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apress/make-your-own-python-text-adventure/HEAD/LICENSE.txt -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apress/make-your-own-python-text-adventure/HEAD/README.md -------------------------------------------------------------------------------- /code/ch10_intermezzo/game.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apress/make-your-own-python-text-adventure/HEAD/code/ch10_intermezzo/game.py -------------------------------------------------------------------------------- /code/ch10_intermezzo/items.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apress/make-your-own-python-text-adventure/HEAD/code/ch10_intermezzo/items.py -------------------------------------------------------------------------------- /code/ch10_intermezzo/player.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apress/make-your-own-python-text-adventure/HEAD/code/ch10_intermezzo/player.py -------------------------------------------------------------------------------- /code/ch11_world/game.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apress/make-your-own-python-text-adventure/HEAD/code/ch11_world/game.py -------------------------------------------------------------------------------- /code/ch11_world/items.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apress/make-your-own-python-text-adventure/HEAD/code/ch11_world/items.py -------------------------------------------------------------------------------- /code/ch11_world/player.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apress/make-your-own-python-text-adventure/HEAD/code/ch11_world/player.py -------------------------------------------------------------------------------- /code/ch11_world/world.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apress/make-your-own-python-text-adventure/HEAD/code/ch11_world/world.py -------------------------------------------------------------------------------- /code/ch12_enemies/enemies.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apress/make-your-own-python-text-adventure/HEAD/code/ch12_enemies/enemies.py -------------------------------------------------------------------------------- /code/ch12_enemies/game.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apress/make-your-own-python-text-adventure/HEAD/code/ch12_enemies/game.py -------------------------------------------------------------------------------- /code/ch12_enemies/items.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apress/make-your-own-python-text-adventure/HEAD/code/ch12_enemies/items.py -------------------------------------------------------------------------------- /code/ch12_enemies/player.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apress/make-your-own-python-text-adventure/HEAD/code/ch12_enemies/player.py -------------------------------------------------------------------------------- /code/ch12_enemies/world.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apress/make-your-own-python-text-adventure/HEAD/code/ch12_enemies/world.py -------------------------------------------------------------------------------- /code/ch13_world2/enemies.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apress/make-your-own-python-text-adventure/HEAD/code/ch13_world2/enemies.py -------------------------------------------------------------------------------- /code/ch13_world2/game.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apress/make-your-own-python-text-adventure/HEAD/code/ch13_world2/game.py -------------------------------------------------------------------------------- /code/ch13_world2/items.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apress/make-your-own-python-text-adventure/HEAD/code/ch13_world2/items.py -------------------------------------------------------------------------------- /code/ch13_world2/player.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apress/make-your-own-python-text-adventure/HEAD/code/ch13_world2/player.py -------------------------------------------------------------------------------- /code/ch13_world2/world.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apress/make-your-own-python-text-adventure/HEAD/code/ch13_world2/world.py -------------------------------------------------------------------------------- /code/ch14_economy/enemies.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apress/make-your-own-python-text-adventure/HEAD/code/ch14_economy/enemies.py -------------------------------------------------------------------------------- /code/ch14_economy/game.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apress/make-your-own-python-text-adventure/HEAD/code/ch14_economy/game.py -------------------------------------------------------------------------------- /code/ch14_economy/items.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apress/make-your-own-python-text-adventure/HEAD/code/ch14_economy/items.py -------------------------------------------------------------------------------- /code/ch14_economy/npc.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apress/make-your-own-python-text-adventure/HEAD/code/ch14_economy/npc.py -------------------------------------------------------------------------------- /code/ch14_economy/player.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apress/make-your-own-python-text-adventure/HEAD/code/ch14_economy/player.py -------------------------------------------------------------------------------- /code/ch14_economy/world.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apress/make-your-own-python-text-adventure/HEAD/code/ch14_economy/world.py -------------------------------------------------------------------------------- /code/ch15_endgame/enemies.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apress/make-your-own-python-text-adventure/HEAD/code/ch15_endgame/enemies.py -------------------------------------------------------------------------------- /code/ch15_endgame/game.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apress/make-your-own-python-text-adventure/HEAD/code/ch15_endgame/game.py -------------------------------------------------------------------------------- /code/ch15_endgame/items.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apress/make-your-own-python-text-adventure/HEAD/code/ch15_endgame/items.py -------------------------------------------------------------------------------- /code/ch15_endgame/npc.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apress/make-your-own-python-text-adventure/HEAD/code/ch15_endgame/npc.py -------------------------------------------------------------------------------- /code/ch15_endgame/player.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apress/make-your-own-python-text-adventure/HEAD/code/ch15_endgame/player.py -------------------------------------------------------------------------------- /code/ch15_endgame/world.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apress/make-your-own-python-text-adventure/HEAD/code/ch15_endgame/world.py -------------------------------------------------------------------------------- /code/ch2_first/game.py: -------------------------------------------------------------------------------- 1 | print("Escape from Cave Terror!") 2 | -------------------------------------------------------------------------------- /code/ch3_io/echo.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apress/make-your-own-python-text-adventure/HEAD/code/ch3_io/echo.py -------------------------------------------------------------------------------- /code/ch3_io/game.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apress/make-your-own-python-text-adventure/HEAD/code/ch3_io/game.py -------------------------------------------------------------------------------- /code/ch4_decisions/game.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apress/make-your-own-python-text-adventure/HEAD/code/ch4_decisions/game.py -------------------------------------------------------------------------------- /code/ch5_functions/game.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apress/make-your-own-python-text-adventure/HEAD/code/ch5_functions/game.py -------------------------------------------------------------------------------- /code/ch5_functions/hello.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apress/make-your-own-python-text-adventure/HEAD/code/ch5_functions/hello.py -------------------------------------------------------------------------------- /code/ch5_functions/hello_name.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apress/make-your-own-python-text-adventure/HEAD/code/ch5_functions/hello_name.py -------------------------------------------------------------------------------- /code/ch6_lists/game.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apress/make-your-own-python-text-adventure/HEAD/code/ch6_lists/game.py -------------------------------------------------------------------------------- /code/ch7_loops/factors.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apress/make-your-own-python-text-adventure/HEAD/code/ch7_loops/factors.py -------------------------------------------------------------------------------- /code/ch7_loops/favorites.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apress/make-your-own-python-text-adventure/HEAD/code/ch7_loops/favorites.py -------------------------------------------------------------------------------- /code/ch7_loops/favorites_pretty.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apress/make-your-own-python-text-adventure/HEAD/code/ch7_loops/favorites_pretty.py -------------------------------------------------------------------------------- /code/ch7_loops/favorites_pretty_counter.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apress/make-your-own-python-text-adventure/HEAD/code/ch7_loops/favorites_pretty_counter.py -------------------------------------------------------------------------------- /code/ch7_loops/favorites_pretty_enumerate.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apress/make-your-own-python-text-adventure/HEAD/code/ch7_loops/favorites_pretty_enumerate.py -------------------------------------------------------------------------------- /code/ch7_loops/favorites_pretty_range.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apress/make-your-own-python-text-adventure/HEAD/code/ch7_loops/favorites_pretty_range.py -------------------------------------------------------------------------------- /code/ch7_loops/game.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apress/make-your-own-python-text-adventure/HEAD/code/ch7_loops/game.py -------------------------------------------------------------------------------- /code/ch8_objects/census.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apress/make-your-own-python-text-adventure/HEAD/code/ch8_objects/census.py -------------------------------------------------------------------------------- /code/ch8_objects/game.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apress/make-your-own-python-text-adventure/HEAD/code/ch8_objects/game.py -------------------------------------------------------------------------------- /code/ch9_exceptions/game.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apress/make-your-own-python-text-adventure/HEAD/code/ch9_exceptions/game.py -------------------------------------------------------------------------------- /code/ch9_exceptions/validate.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apress/make-your-own-python-text-adventure/HEAD/code/ch9_exceptions/validate.py -------------------------------------------------------------------------------- /code/hw-solutions/ch2_first/calculator.py: -------------------------------------------------------------------------------- 1 | print("Which numbers do you want to add?") 2 | -------------------------------------------------------------------------------- /code/hw-solutions/ch3_io/echo.py: -------------------------------------------------------------------------------- 1 | print(input("Type some text: ")) 2 | -------------------------------------------------------------------------------- /code/hw-solutions/ch4_decisions/ages.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apress/make-your-own-python-text-adventure/HEAD/code/hw-solutions/ch4_decisions/ages.py -------------------------------------------------------------------------------- /code/hw-solutions/ch5_functions/calculator.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apress/make-your-own-python-text-adventure/HEAD/code/hw-solutions/ch5_functions/calculator.py -------------------------------------------------------------------------------- /code/hw-solutions/ch5_functions/doubler.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apress/make-your-own-python-text-adventure/HEAD/code/hw-solutions/ch5_functions/doubler.py -------------------------------------------------------------------------------- /code/hw-solutions/ch5_functions/user_calculator.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apress/make-your-own-python-text-adventure/HEAD/code/hw-solutions/ch5_functions/user_calculator.py -------------------------------------------------------------------------------- /code/hw-solutions/ch6_lists/favorites.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apress/make-your-own-python-text-adventure/HEAD/code/hw-solutions/ch6_lists/favorites.py -------------------------------------------------------------------------------- /code/hw-solutions/ch7_loops/greek.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apress/make-your-own-python-text-adventure/HEAD/code/hw-solutions/ch7_loops/greek.py -------------------------------------------------------------------------------- /code/hw-solutions/ch7_loops/multiplication.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apress/make-your-own-python-text-adventure/HEAD/code/hw-solutions/ch7_loops/multiplication.py -------------------------------------------------------------------------------- /code/hw-solutions/ch7_loops/user_calculator.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apress/make-your-own-python-text-adventure/HEAD/code/hw-solutions/ch7_loops/user_calculator.py -------------------------------------------------------------------------------- /code/hw-solutions/ch8_objects/food.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apress/make-your-own-python-text-adventure/HEAD/code/hw-solutions/ch8_objects/food.py -------------------------------------------------------------------------------- /code/hw-solutions/ch9_exceptions/user_calculator.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apress/make-your-own-python-text-adventure/HEAD/code/hw-solutions/ch9_exceptions/user_calculator.py -------------------------------------------------------------------------------- /code/hw-solutions/ch9_exceptions/vehicles.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apress/make-your-own-python-text-adventure/HEAD/code/hw-solutions/ch9_exceptions/vehicles.py -------------------------------------------------------------------------------- /contributing.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Apress/make-your-own-python-text-adventure/HEAD/contributing.md --------------------------------------------------------------------------------