ResearchTrend.AI
  • Papers
  • Communities
  • Events
  • Blog
  • Pricing
Papers
Communities
Social Events
Terms and Conditions
Pricing
Parameter LabParameter LabTwitterGitHubLinkedInBlueskyYoutube

© 2025 ResearchTrend.AI, All rights reserved.

  1. Home
  2. Papers
  3. 1806.11532
18
365

TextWorld: A Learning Environment for Text-based Games

29 June 2018
Marc-Alexandre Côté
Ákos Kádár
Xingdi Yuan
Ben A. Kybartas
Tavian Barnes
Emery Fine
James Moore
Ruo Yu Tao
Matthew J. Hausknecht
Layla El Asri
Mahmoud Adada
Wendy Tay
Adam Trischler
    LLMAG
ArXivPDFHTML
Abstract

We introduce TextWorld, a sandbox learning environment for the training and evaluation of RL agents on text-based games. TextWorld is a Python library that handles interactive play-through of text games, as well as backend functions like state tracking and reward assignment. It comes with a curated list of games whose features and challenges we have analyzed. More significantly, it enables users to handcraft or automatically generate new games. Its generative mechanisms give precise control over the difficulty, scope, and language of constructed games, and can be used to relax challenges inherent to commercial text games like partial observability and sparse rewards. By generating sets of varied but similar games, TextWorld can also be used to study generalization and transfer learning. We cast text-based games in the Reinforcement Learning formalism, use our framework to develop a set of benchmark games, and evaluate several baseline agents on this set and the curated list.

View on arXiv
Comments on this paper