This commit is contained in:
2024-08-11 22:16:42 +02:00
parent 178cde141e
commit 3aeb65cd30

28
main.go
View File

@@ -18,7 +18,7 @@ const (
beans = 100
butter = 774
butter2 = 630 // Cake butter thing that's not real butter
carrot = 35
carrot = 35
chickenBreast = 98
cocoa = 363
egg = 150
@@ -35,25 +35,35 @@ const (
cabbage = 25
sugar = 387
sunflowerOil = 828
tomatoPassata = 31
tomatoPassata = 25
tomatoPaste = 82
hardCheese = 330
porkLean = 143
rice = 130
water = 0
skyr = 62
vegetableMix = 50
mustard = 30
beetroot = 43
ketchup = 92
sausage = 300
mexicomix = 59
milk = 64
yeast = 185
tofu = 76
sourcream = 70
cherry = 63
lentil = 116
cream = 232
)
func main() {
var ingredients = []ingredient{
{weight: 1200, caloriesPer100: water},
{weight: 20, caloriesPer100: butter},
{weight: 20, caloriesPer100: flour},
{weight: 20, caloriesPer100: tomatoPaste},
{weight: 700, caloriesPer100: potato},
{weight: 231, caloriesPer100: carrot},
{weight: 500, caloriesPer100: beans},
{500, potato},
{150, lentil},
{125, cream},
{30, flour},
{1500, water},
}
var totalWeight int64