Skip to content

Maze Project: Add “Draw Path to Exit” Feature #192

@venisha-kalola

Description

@venisha-kalola

Project slug (e.g., snake, todo)

maze

Summary

Enhance the Maze project by adding a “Draw to Exit” mode that allows users to manually draw a path from the maze entrance to the exit using the mouse or touch input. The drawn path should visually appear on the maze grid and can optionally check if the user’s drawn path is valid (i.e., reaches the exit without crossing walls).

Details / Acceptance criteria

Add a toggle/button: “Draw to Exit Mode.”

When active, users can click and drag (or touch) to draw a path on the maze.

The path is highlighted (e.g., blue or glowing line).

Optionally, validate if the drawn path correctly connects the start and exit cells.

Include a “Clear Path” button to reset the drawn path.

Responsive and works for both desktop (mouse) and mobile (touch).

Smooth drawing and minimal lag even on larger mazes.

Scope

  • UI changes
  • Logic changes
  • Accessibility
  • Tests (manual)

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions