Java Task Create Function Called Knight Represent Chess Game Function Show Shortest Path G Q37169615

JAVA: Task: create a function called “knight” to represent thechess game. This function will show the shortest path to get fromone square to another square. Do this by outputting all squares theknight will stop on along the way. Using infinite series searchalgorithm.

Output could look like:

You made it in 2 moves–>

[2,3]

[4,4]


Answer


Leave a Comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.