A knight moves in an "L" shape: two squares in one direction (horizontally or vertically), then one square perpendicularly.
Here's a breakdown of the knight's movement:
- The knight is the only piece in chess that can jump over other pieces. The pieces between the starting and ending squares for the knight do not matter.
- The "L" shape is always formed by moving two squares in one direction (either horizontally or vertically), and then moving one square in a perpendicular direction.
- Consider the board coordinates. If the knight starts at (x, y), it can move to any of these locations:
- (x+2, y+1)
- (x+2, y-1)
- (x-2, y+1)
- (x-2, y-1)
- (x+1, y+2)
- (x+1, y-2)
- (x-1, y+2)
- (x-1, y-2)
Here's a table illustrating the knight's possible moves from a central location:
N | ||||
N | N | |||
N | K | N | ||
N | N | |||
N |
Where:
- K represents the starting position of the knight.
- N represents the possible ending positions of the knight.
Essentially, the knight always moves to a square of the opposite color from which it started.