January 10th, 2011, 2:32 pm
Pawns are not going to move. When knight moves, it can move two squares horizontally and one square vertically, or two squares vertically and one square horizontally. I am trying write a function to calculate legal movement of the knight. Initially, I was thinking to add(+6,+15,+17,+10,-10,-17,-15,-6) to knight's position. But, its not going to work.