mp_mazes
Maddening Mazes
maze.h File Reference

Square Maze implementation. More...

Classes

class  SquareMaze
 Each SquareMaze object represents a randomly-generated square maze and its solution. More...
 

Enumerations

enum  Direction { RIGHT = 0 , DOWN = 1 , LEFT = 2 , UP = 3 }
 An enum is a special type representing a collection of constants. More...
 

Detailed Description

Square Maze implementation.

Date
12/07/2009
12/08/2009

Enumeration Type Documentation

◆ Direction

enum Direction

An enum is a special type representing a collection of constants.

See https://www.w3schools.com/cpp/cpp_enum.asp for details

This enum is used to specify the direction of movement within the maze. Each coordinate direction is associated with a fixed integer value. The value is arbitrarily chosen but will be used for grading so don't modify this.

The directions are defined as follows:

  • RIGHT: Move to the right (Equivalent: +1 to the x coordinate) (Has value 0)
  • DOWN: Move downward (Equivalent: +1 to the y coordinate) (Has value 1)
  • LEFT: Move to the left (Equivalent: -1 to the x coordinate) (Has value 2)
  • UP: Move upward (Equivalent: -1 to the y coordinate) (Has value 3)