What inspired you

I always enjoyed mazes. I have been making giant mazes on the beach at Sunset Beach, NC since 9th grade. We go there every year. I enjoyed putting my ideas in the sand it was nice to see people of all ages having fun in them.

What it does

  • It sets the world
  • It sets up the border of the maze.
  • It then draws all of the horizontal lines making up the maze.
  • It then draws all of the vertical lines making up the maze.
  • The lines are drawn my taking in an array value that is either a 1 or 0.
    • If it is a 1, the specific line segment is drawn. Otherwise, the turtle only moves past.
    • The correct coordinate value is also called and increased for both horizontal and vertical functions.
  • It draws the start (green circle) and end (red circle) positions
  • Once you reach the desired coordinates at the red circle, the program congratulates you and asks you to close it.

How we built it and import the necessary systems

  • I imported the necessary systems and tested to make sure they work.
  • I then drew an outline of the maze of the grid.
  • I then created arrays.
  • I then marked on my graph for both of the axis whether a spot was empty or filled.
  • I then plugged the fill (1) or no fill (0) value into the array.
  • I then coded the rest of the commands to customize the movement, borders, and look.

Challenges we ran into

  • I had trouble finding an effective way to check the points of the arrays.
  • I struggled having the borders be detected properly, both inside and on the edges.

Accomplishments that we're proud of

  • The maze is effective and functional.
  • The colors also match CSH
  • It is also very customizable

What we learned

  • I learned or re-learned multiple topics in Python such as arrays and for loops
  • I learned a unique way to draw the lines of a maze.
    • As long as the dimensions matched, the maze can be changed my changing the correct 1's and 0's
  • I also learned how to accurately detect the borders.

What's next for CSH Mini Maze

  • I may add more mazes and ask the user for which one.

Built With

Share this project:

Updates