Skip to content

Charleco/MouseMaze

Repository files navigation

MouseMaze

a small exercise in random maze generation and pathfinding in the C# MonoGame framework

Demo

How It Works

Upon launch, the maze is generated using with an iterative implementation of the randomized depth-first search algorithm. Mice can then be spawned in the maze with the right mouse button, and cheese can be spawned with the left mouse button. If there is no cheese in the maze, the mice will wander around randomly with the random mouse algorithm. Otherwise, if there is cheese in the maze, mice will use a recursive depth-first search to determine a path to the cheese.

Mouse Behavior

Credits

This project utilizes the Primitive Buddy library for rendering primitives.