A sketch of solution with naive (i.e., wrong) implementation of affectedSquares().
Python solution to ChessMetrics problem.
Add minor documentation for the methods.