Implement Mouse({ render }) simulating a render-prop component.
solve(positions, renderFn) calls the simulated component for each
position; the component invokes render({ x, y }) and collects the result.
renderFn is given as a string of source code.
Sample tests