/chess_moves_of_knight

Given the position of a knight it calculates all possible next moves of the knight.

Primary LanguageCMIT LicenseMIT

chess_moves_of_knight

Given the position of a knight list down all possible next moves.

Although chess is a very interesting two player game a chess board is also equally interesting as it opens doors to various computational problems. The moves of the knight are rather unusual and make a great programming problem.

Data Structure

Two-dimensional matrix