From dca05bee1191e840c966932f36af853b78f033b7 Mon Sep 17 00:00:00 2001 From: Michele Sessa Date: Wed, 14 Sep 2022 15:51:04 +0100 Subject: [PATCH] docs(traits): clarify fat_content meaning --- subjects/traits/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/subjects/traits/README.md b/subjects/traits/README.md index 71d3c553..90c28d52 100644 --- a/subjects/traits/README.md +++ b/subjects/traits/README.md @@ -7,7 +7,7 @@ Imagine you are designing a new video game, and your next feature is to create f There are two types of food for now: - `Fruit`: increases the strength by 4 units for each kilogram of fruit consumed. -- `Meat`: has a weight in kilograms, and it's pure fat content as a percentage. The remaining weight of meat which is not pure fat is considered to be protein. Each kilogram of protein increases the strength by 4 units. Each kilogram of fat increases the strength by 9 units. +- `Meat`: has a weight in kilograms, and it's pure fat content as a decimal fraction. The remaining weight of meat which is not pure fat is considered to be protein. Each kilogram of protein increases the strength by 4 units. Each kilogram of fat increases the strength by 9 units. Define the `Food` trait for `Fruit` and `Meat`. The required method `gives` returns the amount of strength that the food provides.