Skip to content
This repository has been archived by the owner on May 6, 2024. It is now read-only.

Enable the choice of action space #363

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions nle/env/tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -323,11 +323,12 @@ def __init__(
no_progress_timeout: int = 10_000,
**kwargs,
):
actions = nethack.ACTIONS
kwargs["wizard"] = False
# this allows to select a different action space
# if the action space is not set, pick all the actions
if "actions" not in kwargs: kwargs["actions"] = nethack.ACTIONS
super().__init__(
*args,
actions=actions,
character=character,
allow_all_yn_questions=allow_all_yn_questions,
allow_all_modes=allow_all_modes,
Expand Down