GitXplorerGitXplorer
y

nasa_helper

public
0 stars
0 forks
0 issues

Commits

List of commits on branch main.
Unverified
fcb227176e94877d9df02cdfcf9c50e99fdd4e79

Add readme

yyuriihabrusiev committed 9 months ago
Unverified
78cfa1c2a3f35ed37d295525c306af9600d037d7

Add data validation

yyuriihabrusiev committed 9 months ago
Unverified
b8a467177f19974907582005bf485895395160d7

Add FuelCalc implementation

yyuriihabrusiev committed 9 months ago
Unverified
d5b9fd1c3cbe70476cc0391a839b99e68d31ee51

Initial commit

yyuriihabrusiev committed 9 months ago

README

The README file for this repository.

NASA Helper

Simple app to calculate fuel required for spaceship to launch/land on Earth, Moon or Mars.

To use, simply import the module nasa_helper, provide spacecraft weight and route, and call the calculate_fuel function.

require "nasa_helper"

helper = NasaHelper.new(
  equipment_weight: 28_801,
  route: [[:launch, "earth"], [:land, "moon"], [:launch, "moon"], [:land, "earth"]]
)
helper.calculate_fuel # => 13_447