Fix errors in the functions:
count-by-color and castling-transitable?.
Adapt the function query-game-service to work at a lower level --
that is, to accept charts rather than queries.
Add helper functions move-if-king-safe and update-context.
Adapt main.js so that it intefaces with the new
game-service API.
Remove styles for .show and .src; set #chess 'user-select' to 'none'.
Render additional game-service functions and constants publicly accessible.
Refactor so not to use React.createClass;
refactor the function extract-pos to couple with a node's class name rather
than React's scheme for node IDs.
Delete the extraneous functions #count-by-color,
#castleable?, and @.tgt-available?;
also, refactor #opponent-mated? and #position-assailed? to a temporary
state that requires further refactoring.
Amend #castling-legal?-specs -- that is, change
white-kingward-path to white-queenward-path
Remove 'tgt-available?' from the list of names
of king methods.
Separate the function #move into two functions:
a renamed #move-across-map and a new function #move-across-chart
so that opponent pawns can be captured en passant.
Amend to comply with the renamed function #move-across-map.
Delete definition of unused function #wayfare-transitable2.
Switch from #move-across-map to #move-across-chart within
#implement-king in order to allow rook castling.
Set z-index css attribute of .ui-draggable-dragging so
that a dragged piece is superposed on attacked opponents.
Change #move-across-map to #move-across-chart in
c.king-fn-names for consistency with game-service.js.
Adapt 'king functions #move' spec for charts rather than maps.
Add a function #move that delegates to
#move-across-map or #move-across-chart based on argument type.
Add fns to check for pawns that will promote.
Have testem listen to all files in the 'src' directory.
Amend #move-across-chart within #implement-pawn so that
the pawn's target and the passant position are compared;
have #query-game-service return a response that includes a message
indicating whether a pawn should be promoted.
Extract context from the game-service's response.