hyphi_gym.common.maze#

Module Contents#

Classes#

Maze

Gridworld Maze Environment based on hyphi Grid.

Attributes#

hyphi_gym.common.maze.LEVELS#
class hyphi_gym.common.maze.Maze(size, random=[], prefix='', **kwargs)#

Bases: hyphi_gym.common.board.Board

Gridworld Maze Environment based on hyphi Grid. :param size: (≤15, guarantee solvability within 100 steps (worst for 15: 96)) :param random: optional list of features to be stochastic supporting layout, agent-, and target-placement

_generate()#

Generate random mazes of self.size using Kruskal’s algorithm. Generated mazes are forced to difer the static configurations above.