This is my solution of the assignment Knight Travails given in the The Odin Project. To get a better understanding of how to solve the problem I used this source. To make the interactive part I took the idea form top solution of this assignment at that time.
- To Place a knight or to select the starting loaction click on the
Place Knight
button. One can also use RandomlyKnight Place
button to place the knight anywhere on the board. - To select the destination or the end position of the knight click on the
Select Destination
button. - To find the path how the knight reaches the end position from the start path click on the
Start Travails
button. - When you have found the path and again press the
Place Knight
orRandomly Place Kinght
orSelect Destination
button the previous path will disappear form screen. But the previous knight starting and ending position are still in memory until you select the new position. To remove these from the memory to pressClear Board
button.