31 minutes ago, LorenzoGatti said:generate flight plans automatically
Which is not as straight forward as you think!
Let me show you the following graph - it is a maneuver calculation result for Earth to Mars transfer. On the x-axis you have departure date, on the y-axis you have arrival date. The color represents total delta-v (change of velocity in prograde direction of Earth's orbit around the sun).
Calculating the transfer automatically is huge problem in reality, you need more information to supply.
Do you want lowest-energy transfer (e.g. lowest delta-v), which results in highest mass transferred from Earth to Mars?
Do you want shortest time possible (it will differ based on phasing angles of the planets)? Also for that you need to know how much delta-v is ship capable of spending for the transform.
...
A bit off topic note: In real world you always balance this - spending more delta-v means you need to carry more fuel into orbit. Spending long time on the way to the designated object is again counter-productive, as devices have certain lifetime and it may results in changing mission objective or even critical failures.
It is also common to do multiple corrections along the way - in space, you will not execute anything precisely enough (and slight imprecision of few m/s at Hohmann transfer burn, can result in being millions of km out of target body, and missing the gravity well of target body completely). Their amount is often dependent on the total distance you have to travel.
...
In a game you would most likely have to define specific delta-v capability for ship, and at any given point you would start transformation to get there as soon as possible with given delta-v (this means that you may actually wait). The math can be done, but is definitely not straight forward and simple (it requires multiple inputs).
There is always a question, can you hack it? You may try, but it won't be easy (assuming you want your motion to be convincing).