mazetool package

Submodules

mazetool.mazetool module

Generates a maze. Allows a cli tool for ease of editing maze. Upon saving the maze, it stores it in the current directory as a series of files.

class mazetool.mazetool.GameMaze(size=(70, 40))[source]

Bases: object

A GameMaze class which creates a maze.

COLORS = {'nothing': '\x1b[36m', 'player': '\x1b[47m', 'END': '\x1b[0m', 'goal': '\x1b[33m', 'bomb': '\x1b[91m'}
MAZE = {'nothing': '.', 'player': 'P', 'bomb': 'B', 'goal': 'G'}
clear_all(game_point)[source]

Resets the value on gamepoint to nothing.

count_attribute(attribute)[source]

Returns the count of number of attribute in maze.

dump()[source]

Dumps a maze to the current directory.

get_attribute(game_point)[source]

Returns the value on gamepoint.

load()[source]

Loads a maze from the current directory.

set_attribute(game_point, attribute)[source]

Sets the value on gamepoint to attribute.

mazetool.mazetool.getch()[source]

A getch for Linux Systems.

mazetool.mazetool.main()[source]

Main Function.

Module contents