Remove unused fns; rename fn #color-absent?.
Add fn #chessman-type-from.
Use g.generate-position! instead of
g.generate-position to prevent premature exceptions.
Refactor the fn #modifyCastlingRights.
Refactor the fns #castle, #move, and #rook-castling-path.
Rename and refactor the fn #move.
Add api functions and helper functions.
Add api functions and helper functions.
Add king-spec.js and game-service-spec.js to spec files.
Remove specs for nonexistent functions.
Add specs for the fn #getPotentialMoves;
rename the fn #move.
Add specs for the 'king' chessman type.
Add specs for the game service.