Skip to content

A7bari/Shortest-Knight-Path

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 

Repository files navigation

Shortest-Knight-Path

check in CodeWars

Given two different positions on a chess board, find the least number of moves it would take a knight to get from one to the other. The positions will be passed as two arguments in algebraic notation. For example, knight("a3", "b5") should return 1.

The knight is not allowed to move off the board. The board is 8x8.

For information on knight moves, see see in wikipedia

For information on algebraic notation, see see in wikipedia

About

Graphs problem

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published