Package kuimaze :: Module maze
[hide private]
[frames] | no frames]

Module maze

source code

Main part of kuimaze - framework for working with mazes. Contains class Maze (capable of displaying it) and couple helper classes


Author: Otakar Jašek, Tomas Svoboda

Contact: jasekota(at)fel.cvut.cz, svobodat@fel.cvut.cz

Copyright: (c) 2017, 2018

Classes [hide private]
  SHOW
Enum class used for storing what is displayed in GUI - everything higher includes everything lower (except NONE, of course).
  ACTION
Enum class to represent actions in a grid-world.
  ProbsRoulette
Class for probabilistic maze - implements roulette wheel with intervals
  ActionProbsTable
  Maze
Maze class takes care of GUI and interaction functions.
Variables [hide private]
  fw_orig = warnings.formatwarning
  weighted_state = collections.namedtuple('State', ['x', 'y', 'r...
  state = collections.namedtuple('State', ['x', 'y'])
  path_section = collections.namedtuple('Path', ['state_from', '...
  MAX_CELL_SIZE = 200
  MAX_WINDOW_PERCENTAGE = 0.85
  BORDER_SIZE = 0
  LINE_SIZE_PERCENTAGE = 0.02
  DRAW_LABELS = True
  LINE_COLOR = "#FFF555333"
  WALL_COLOR = "#000000000"
  EMPTY_COLOR = "#FFFFFFFFF"
  EXPLORED_COLOR = "#000BBB000"
  SEEN_COLOR = "#BBBFFFBBB"
  START_COLOR = "#000000FFF"
  FINISH_COLOR = "#000FFFFFF"
  DANGER_COLOR = "#FFF000000"
  FONT_FAMILY = "Helvetica"
  FONT_SIZE = round(12* MAX_CELL_SIZE/ 50)
  REWARD_NORMAL = -0.04
  REWARD_DANGER = -1
  REWARD_GOAL = 1
Variables Details [hide private]

weighted_state

Value:
collections.namedtuple('State', ['x', 'y', 'reward'])

path_section

Value:
collections.namedtuple('Path', ['state_from', 'state_to', 'cost', 'act\
ion'])