acmpesuecc / chess_moves_of_knight

Given the position of a knight it calculates all possible next moves of the knight.
MIT License
0 stars 2 forks source link
c chessboard hacktoberfest

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

Compiling

make -f KnightMake

Usage

./KnightProg