poli.objective_repository.super_mario_bros.level_utils#
Utilities for transforming levels to arrays and back.
Functions
|
Adds padding to the left of the level, giving room for the agent to land. |
|
Cleans a level by removing Mario (token id: 11), and replacing it with empty space. |
|
Parses a level from string to numpy array. |
|
Takes a level as a string and returns a list of lists of individual tokens. |
|
Transforms an array [b, w, h] of integers into a one-hot array [b, n_sprites, w, h]. |
|
Transforms a level from probits to integers. |
|