Basic Entities

Here is a list of provided basic entities that will likely be needed in most gridworld environments.

Note that all of these entities do not override the default Entity.transition(), which does nothing.

class sorrel.entities.Wall

A basic entity that represents a wall.

By default, walls penalize contact (with a reward value of -1).

class sorrel.entities.EmptyEntity

A basic entity that represents a passable empty space.

By default. EmptyEntities are passable.

class sorrel.entities.Gem(gem_value: float | int)

An entity that represents a rewarding object in an environment.

By default, Gems are passable.