Implement castling
Closed this issue · 1 comments
cognalog commented
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
cognalog commented
This should probably be an alternative Board method to move(...) called castle(...)