facebookresearch / nle

The NetHack Learning Environment
Other
940 stars 114 forks source link

"Random" selection doesn't work the way it's intended #282

Closed heiner closed 2 years ago

heiner commented 2 years ago

🐛 Bug

Right now, we sometimes use name:Agent-@, but that selects only a random role, not a random "race", "gender", or "alignment". NetHack has a flag called flags.randomall, enabled via the -@ command line option, to truly select everything randomly.

We might want to expose the flags setting of NLE and enable that? It's kind of bad that there's no direct option for that. One alternative would be NETHACKOPTIONS='name:Blob-@, race:random, gender:random, align:random'.