def _build_maze(self):
    self.canvas = tk.Canvas(self, bg='white', height=(MAZE_H * UNIT), width=(MAZE_W * UNIT))
    for c in range(0, (MAZE_W * UNIT), UNIT):
        (x0, y0, x1, y1) = (c, 0, c, (MAZE_H * UNIT))
        self.canvas.create_line(x0, y0, x1, y1)
    for r in range(0, (MAZE_H * UNIT), UNIT):
        (x0, y0, x1, y1) = (0, r, (MAZE_W * UNIT), r)
        self.canvas.create_line(x0, y0, x1, y1)
    origin = np.array([20, 20])
    hell1_center = (origin + np.array([(UNIT * 2), UNIT]))
    self.hell1 = self.canvas.create_rectangle((hell1_center[0] - 15), (hell1_center[1] - 15), (hell1_center[0] + 15), (hell1_center[1] + 15), fill='black')
    hell2_center = (origin + np.array([UNIT, (UNIT * 2)]))
    self.hell2 = self.canvas.create_rectangle((hell2_center[0] - 15), (hell2_center[1] - 15), (hell2_center[0] + 15), (hell2_center[1] + 15), fill='black')
    oval_center = (origin + (UNIT * 2))
    self.oval = self.canvas.create_oval((oval_center[0] - 15), (oval_center[1] - 15), (oval_center[0] + 15), (oval_center[1] + 15), fill='yellow')
    self.rect = self.canvas.create_rectangle((origin[0] - 15), (origin[1] - 15), (origin[0] + 15), (origin[1] + 15), fill='red')
    self.canvas.pack()
def _build_maze(self):
    self.canvas = tk.Canvas(self, bg='white', height=(MAZE_H * UNIT), width=(MAZE_W * UNIT))
    for c in range(0, (MAZE_W * UNIT), UNIT):
        (x0, y0, x1, y1) = (c, 0, c, (MAZE_H * UNIT))
        self.canvas.create_line(x0, y0, x1, y1)
    for r in range(0, (MAZE_H * UNIT), UNIT):
        (x0, y0, x1, y1) = (0, r, (MAZE_W * UNIT), r)
        self.canvas.create_line(x0, y0, x1, y1)
    origin = np.array([20, 20])
    hell1_center = (origin + np.array([(UNIT * 2), UNIT]))
    self.hell1 = self.canvas.create_rectangle((hell1_center[0] - 15), (hell1_center[1] - 15), (hell1_center[0] + 15), (hell1_center[1] + 15), fill='black')
    hell2_center = (origin + np.array([UNIT, (UNIT * 2)]))
    self.hell2 = self.canvas.create_rectangle((hell2_center[0] - 15), (hell2_center[1] - 15), (hell2_center[0] + 15), (hell2_center[1] + 15), fill='black')
    oval_center = (origin + (UNIT * 2))
    self.oval = self.canvas.create_oval((oval_center[0] - 15), (oval_center[1] - 15), (oval_center[0] + 15), (oval_center[1] + 15), fill='yellow')
    self.rect = self.canvas.create_rectangle((origin[0] - 15), (origin[1] - 15), (origin[0] + 15), (origin[1] + 15), fill='red')
    self.canvas.pack()