cognalog/en-passant

Implement castling

Closed this issue · 1 comments

Rules:

  • king must not have moved
  • castling rook must not have moved
  • king can't be in check
  • nearest 2 spaces in castling rook's direction from king can't be controlled by opponent
  • other pieces can't be in the way

Reference: chess.com

This should probably be an alternative Board method to move(...) called castle(...)