Skip to content

sergiogarciiam/knights-travails

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Knights Travails

Knights travails implemented with JavaScript.

This project is from The Odin Project curriculum.

How to Use

This project will show the shortest possible way to get from one square to another by outputting all squares the knight will stop on along the way using BFS.

  • knightMoves(start, end) will return an array which is the shortest path.

  • The parameters start and end are arrays that indicate the coordinates [x, y]

Author

Sergio García

License

This project is open source and available under the MIT License.

About

Knights travails implemented with JavaScript.

Topics

Resources

License

Stars

Watchers

Forks