The environment
At the time of writing, the TextWorld environment supports only Linux and macOS platforms (for Windows, you can use a Docker container) and internally relies on the Inform 7 system (https://inform7.com). There are two web pages for the project: one is the Microsoft Research web page ( https://www.microsoft.com/en-us/research/project/textworld/), which contains general information about the environment, and the another is on GitHub (https://github.com/microsoft/TextWorld) and describes installation and usage. Let’s start with installation.
Installation
Installation can be done with simple pip install textworld==1.6.1. All the examples in this chapter were tested with the latest 1.6.1 release of the package.
Once installed, the package can be imported in Python code, and it also provides two command-line utilities for game generation and gameplay: tw-make and tw-play. They are not needed if you have ambitious plans to solve full...