-
Notifications
You must be signed in to change notification settings - Fork 0
Description
I recently introduced two functions, one to get the ship speed and the second one to get the flight distance between two coordinates. What I'm missing now is a function that computes the flying time. I think the function should take the speed of the ship and the distance, but as for the formula, you can check online. You don't need to add the universe speed because it will be a speed of one, and you don't need any other features. It's just like the classical old game where there was no life forms or whatever. So you can create the function that computes the flying distance, and then you can create also the function that computes the fuel consumption, and this function should take the flight distance and the base fuel consumption, the one that you can get with the existing function. This is important. Do not make any test and only create two files, one for each function. Do not change or add any other files. This is very important.