mirror of
https://github.com/Anduin2017/HowToCook.git
synced 2026-05-19 05:41:25 +08:00
Use dotlang AI translation (aiursoft-instruct:latest via Ollama) to translate all Chinese content to English under en/ subfolder: - en/dishes/: all recipe categories (aquatic, breakfast, condiment, dessert, drink, meat_dish, semi-finished, soup, staple, vegetable_dish) - en/tips/: learn/ and advanced/ cooking guides - en/README.md, en/CONTRIBUTING.md, en/CODE_OF_CONDUCT.md The mkdocs-static-i18n plugin (docs_structure: folder) serves Chinese at the root and English at /en/, with a language switcher in the UI. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
41 lines
1.4 KiB
Markdown
41 lines
1.4 KiB
Markdown
# How to Decide What to Eat
|
|
|
|
Deciding what to eat is one of my biggest challenges before cooking. So, I'll describe it mathematically.
|
|
|
|
## Calculation Method
|
|
|
|
### Determining the Number of Meat and Vegetable Dishes
|
|
|
|
* The number of dishes = Number of people + 1.
|
|
* There should be one more meat dish than vegetable dishes, or the same number.
|
|
|
|
From this, you can determine the number of meat and vegetable dishes, and then select from the recipes in the previous step.
|
|
|
|
#### Formal Language Description
|
|
|
|
When there are `N` people,
|
|
let `a` be the number of vegetable dishes and `b` be the number of meat dishes.
|
|
`N`, `a`, and `b` are all integers.
|
|
|
|
The following inequalities apply:
|
|
|
|
* a + b = N + 1
|
|
* a ≤ b ≤ a + 1
|
|
|
|
Solving this gives:
|
|
|
|
```javascript
|
|
const a = Math.floor((N+1)/2);
|
|
const b = Math.ceil((N+1)/2);
|
|
```
|
|
|
|
### Choosing the Dishes
|
|
|
|
* If there are more than 8 people, consider adding a fish dish among the meat dishes.
|
|
* If there are children, consider adding dishes with a sweet flavor.
|
|
* Consider adding signature or specialty dishes.
|
|
* When deciding on meat dishes, avoid using meat from the same type of animal for all of them. The preferred order is: `pork`, `chicken`, `beef`, `lamb`, `duck`, `fish`.
|
|
* Do not choose unusual or exotic animals for the meat dishes.
|
|
|
|
If you are still unsure, use the [What to Eat Today?](https://github.com/ryanuo/whatToEat) tool to decide what to have for dinner.
|