Three Body Problem

From an initial set of data specifying the positions, masses and velocities of three bodies for a particular point in time, find the optimal path for the third body to avoid a collision and reach the provided destination.

Avoid making mistakes for high score.

Web demo: |

Keyboard controls:
Use the arrow keys or WASD to move.
Press space, enter, or arrow keys to restart.

Gamepad controls:
Use the left stick to move.
Press ‘A’ to restart.

Tools used:
bfxr by Increpare