✦
Summary
Nail is an open-source Python implementation of the NAIL (Navigate, Acquire, Interact, Learn) algorithm, a general game-playing agent for parser-based interactive fiction games. It was developed by Ed Saavedra and is based on the NAIL algorithm described by Hausknecht et al. in 2019, with the canonical implementation published by Microsoft Research.
Key Features
Implementation of the NAIL (Navigate, Acquire, Interact, Learn) algorithm
Autonomous play of parser-based interactive fiction games
Examines game locations and identifies relevant objects
Decision-making for object interaction and navigation
Learns from action outcomes to adapt to new game scenarios
Handles unknown game environments without prior knowledge
First place in the 2018 Text-Based Adventure AI Competition
Open-source Python implementation for research and modification
About Nail
The agent plays text adventure games by examining the current location to identify relevant objects, interacting with those objects, navigating to a new location and repeating the cycle, learning from the outcomes of its actions as it goes. Despite the simplicity of this heuristic loop, it proved remarkably effective across a wide variety of interactive fiction games.
NAIL won first place in the 2018 Text-Based Adventure AI Competition, where it was evaluated on twenty unseen parser-based games, and it was later evaluated on 56 games using the Jericho learning environment. The project is aimed at researchers, developers and enthusiasts interested in AI for game-playing and natural language processing, and it runs on Linux with Python 3.