facebookresearch / nle

The NetHack Learning Environment
Other
939 stars 113 forks source link

more monsters exist than expected? #354

Closed simiaolin closed 1 year ago

simiaolin commented 1 year ago

🚀 why there are more monsters than expected?

I was using Minihack, which is dependent on NLE. When I created an environment MinihackRoom, I set the number of monsters to be one. However, when I tried running the reinforcement learning task and visualizing it, sometimes I can set that there are two monsters. I attach the screenshots here. I am curious about the reason for it.

image

image

cdmatters commented 1 year ago

Hi there - a great question! My advice is you open this on the Minihack repo: CC @samvelyan

samvelyan commented 1 year ago

@simiaolin this is because the cave spiders are often generated in groups (see nethack wiki). If you definitely want only a single monster, you'd need to specify which monsters you want to generate on a slightly modified environment. Here is the monster difficulty you'd want to consider when spawning them: https://nethackwiki.com/wiki/Monster_difficulty. I'd start with the weakest ones.