You are browsing as a guest. Sign up (or log in) to start making projects!

Maze Game

  • 6 Devlogs
  • 7 Total hours

I'm creating a completely randomized maze game that you can play in VS Code.

Ship #1

Here is my completed project:

I created a randomly generated maze game that you can play in your VS Code terminal.

It was hard. I'm not like super-duper experienced, I've only really done programming through my school, so this ultimately pretty simple program took me over seven hours to write. In the end I think it works just how I expected and I'm happy with how it turned out.

I tried a few methods for maze generation and tried my best to do it all on my own without just looking up preexisting maze generation strategies. The method I ended up using is a recursive one that finds all valid neighbors of a point on the maze grid and runs itself on each of those neighbors in a randomized order. When it recurses it branches out to that spot which guarantees that the maze is completely connected and that you won't be stuck in a loop.

Through the github page you should have access to the file. If you download and run it separately just make sure you have the latest Java version because it uses enhanced switch-case blocks whose syntax is exclusive to the newest Java. If anything is wrong with my code please tell me so I can fix it and republish. Thanks!

  • 6 devlogs
  • 7h
  • 4.55x multiplier
Try project → See source code →

Delete project?

Are you sure you want to permanently delete this project? This action cannot be undone.

All devlogs, followers, and associated data will be removed.

Followers

Loading…