facebookresearch / nle

The NetHack Learning Environment
Other
940 stars 114 forks source link

Pick random race/gender/alignment when selecting random role. #307

Closed heiner closed 2 years ago

heiner commented 2 years ago

A NetHack option like "name:Heiner-@" only selects a random role but still asks about race/gender/alignment. NetHack also has the command line flag -@ (mapped to flags.randomall) to randomize everything, but there's no option in the .nethackrc sense for that.

This change makes it such that playername="Heiner-@" appends race:random, gender:random, align:random to NetHack's options unless these have been set already.

Note: In the NetHack competition, this issue didn't hurt us because we auto-selected "Random" for the startup questions.

Fixes #282.