Code license
NetHack General Public License; preserve notices and follow source/distribution obligations.
Asset license
Bundled NetHack data follows repository notices; external tilesets are separate.
AI use in testing
An AI research interface; distinguish terminal rendering, symbols, text messages and internal state so planning results remain comparable.
Try these tasks
- Measure staircase or score-task progress with a fixed turn budget.
- Test inventory decisions and recovery after invalid actions.
- Modify a task reward or termination rule and replay baseline rollouts.
Setup
- Prepare Python 3.10+, CMake 3.28+ and the platform build prerequisites documented upstream.
- Install nle, then run python -m nle.scripts.play --mode random.
- Create NetHackScore-v0 with fixed observation_keys, actions and fix_moon_phase=True; before reset, call env.unwrapped.seed with recorded core, disp, reseed=False and optional lgen values.
Limitations
Source reviewed, not run here. Native tools may be required. In the inspected code, reset(seed=...) seeds Gymnasium but does not set NetHack RNGs; use the explicit seed interface. NetHackChallenge deliberately disallows seed changes. Terminal/glyph observations are not RGB game frames.