Exemple #1
0
        public void ChooseRecipe()
        {
            recipe.DisplayStandardRecipe();
            Console.WriteLine("Do you want to use the standard recipe or make your own? Please enter 'standard' or 'make'.");
            string recipeChoice = Console.ReadLine().ToLower();

            switch (recipeChoice)
            {
            case "standard":
                recipe.UseStandardRecipe(inventory);
                break;

            case "make":
                recipe.MakeOwnRecipe(inventory);
                break;

            default:
                Console.WriteLine("That was an invalid entry. Please press enter to continue.");
                ChooseRecipe();
                break;
            }
        }