A framework for learning agents in text-based games and environments. TextWorld is A text-based game generator developed by Microsoft. It provides an open-source, extensible engine that both generates and simulates text games, which are useful to train reinforcement learning (RL) agents to learn skills such as language understanding and grounding, combined with sequential decision making.