We have X booklet that can give us a Ravioli(ID 0) or a Pasta(ID 1) or a Lasagna(ID 2).
We use Meat, Tomato Sauce and Flour as ingredients, but can only do it if we have 3 of each.
Then we set default values of quantities for each, from 1 to 3:
Use 2 Meats, then 1 Tomato Sauce and then 2 Flours.
The quantities that were set define the ID of the returned item if the user got everything 'right'.
In this case, since most ingredients use 2 as a default, our ID will be 1.
If it was 3, our ID would be 2. And if it was 1, our ID would be 0.
Given this, we could get:
- If the player used 2 Meats, 1 Tomato Sauce and 2 Flours they would get a Pasta;
- If the player used 3 Meats, 1 Tomato Sauce and 2 Flours they would get a Lasagna;
- If the player used 3 Meats, 2 Tomato Sauces and 3 Flours they would get a Ravioli.