On a 8x8 chess board the knight starts at one place and finds shortest path to another. The vertices in the graph are each of the possible positions on the chessboard, represented by a pair of coordinates like [x, y], where x and y are between 0 and 7, x coord first in the array. The edges are the valid knight moves between vertices.
βββ lib
βΒ Β βββ knight_travails
βΒ Β βΒ Β βββ board.rb
βΒ Β βΒ Β βββ display.rb
βΒ Β βΒ Β βββ game.rb
βΒ Β βΒ Β βββ knight.rb
βΒ Β βββ knight_travails.rb
βββ main.rb // just a file for testing.
βββ README.md
knight_moves(start,stop)- returns the shortest path from start to stop for the kngiht and outputs a nice display of board to showcase it.
