Skip to content

two new functions #3

@slk333

Description

@slk333

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.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions