Skip to content
Merged
Show file tree
Hide file tree
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
3 changes: 1 addition & 2 deletions textworld/challenges/coin_collector.py
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,6 @@ def make_game(mode: str, options: GameOptions) -> textworld.Game:
metadata["seeds"] = options.seeds
metadata["world_size"] = options.nb_rooms
metadata["quest_length"] = options.quest_length
metadata["grammar_flags"] = options.grammar.encode()

rngs = options.rngs
rng_map = rngs['map']
Expand Down Expand Up @@ -121,7 +120,7 @@ def make_game(mode: str, options: GameOptions) -> textworld.Game:

# Add distractor rooms, if needed.
chain_of_rooms = list(rooms)
while len(rooms) < n_rooms:
while len(rooms) < options.nb_rooms:
if mode == "random":
src = rng_map.choice(rooms)
else:
Expand Down
1 change: 0 additions & 1 deletion textworld/challenges/treasure_hunter.py
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,6 @@ def make_game(mode: str, options: GameOptions) -> textworld.Game:
metadata["seeds"] = options.seeds
metadata["world_size"] = options.nb_rooms
metadata["quest_length"] = options.quest_length
metadata["grammar_flags"] = options.grammar.encode()

rngs = options.rngs
rng_map = rngs['seed_map']
Expand Down