Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Escape the Labyrinth #5

Open
3 tasks
nakov opened this issue Oct 6, 2019 · 0 comments
Open
3 tasks

Escape the Labyrinth #5

nakov opened this issue Oct 6, 2019 · 0 comments
Assignees
Labels

Comments

@nakov
Copy link
Contributor

nakov commented Oct 6, 2019

Create a JavaScript front-end app to find the shortest path to exit from a labyrinth and visualize the movements using SVG:

  • The labyrinth is a rectangular table of W * H block. Each block is either empty or holds a wall. The starting position is an empty cell inside the labyrinth. Moving is allowed from one empty block to a neighbour empty block in one of the 4 directions: up, right, down, left.
  • Allow choosing from several predefined labyrinths.
  • Allow choosing the starting position inside the labyrinth.
  • Find the shortest path to escape from the labyrinth. If several shortest paths exist, choose one of them. If no escape exists, print appropriate message.
  • Animate the movements from the starting position to the exit.

This is how your solution might look like (but feel free to implement it differently):

image

image

image

image

image

Your project's source code should be in your GitHub profile, along with the full commit log, which demonstrates the development efforts over the time.

Your project should be live, deployed in GitHub Pages.

Steps to Accomplish This Assignment

  • Learn the BFS (Breadth-First-Search) Algorithm
  • Learn JavaScript at basic level
  • Learn SVG at basic level
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants