From d7031bd56378ecb3cebfec89c23255c706dd1e92 Mon Sep 17 00:00:00 2001 From: Supermjork Date: Thu, 2 Jun 2022 19:47:01 +0200 Subject: [PATCH] Regex implemented (Linly brain went brr), Added more actions, RecipeCreation takes string as input now. --- .idea/misc.xml | 2 +- src/RecipeInstructions.java | 7 ++++--- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/.idea/misc.xml b/.idea/misc.xml index 07115cd..f3f4fc6 100644 --- a/.idea/misc.xml +++ b/.idea/misc.xml @@ -1,6 +1,6 @@ - + \ No newline at end of file diff --git a/src/RecipeInstructions.java b/src/RecipeInstructions.java index cc795a7..772855f 100644 --- a/src/RecipeInstructions.java +++ b/src/RecipeInstructions.java @@ -90,7 +90,7 @@ public class RecipeInstructions } // This creates an action + children - public static void RecipeCreation() + public static void RecipeCreation(String instructionIn) { //New tree who dis RecipeTree fullInstructions = new RecipeTree(); @@ -99,7 +99,8 @@ public class RecipeInstructions Scanner input = new Scanner(System.in); String userInput; //Need to not hardcode verbs maybe a global variable for it? etc etc - String[] verbs = {"add", "mix"}; + String[] verbs = {"add", "mix", "stir", "wait", "bake", "heat", "sift", "boil", "melt", "fry", "cool", + "remove", "eat", "cut"}; //init this shit int currentNumber = 0; String currentIngredient = null; @@ -163,7 +164,7 @@ public class RecipeInstructions @Test void testRecipeCreation() { - RecipeCreation(); + RecipeCreation("disNotRealOnlyToAvoidErrorTrustDuud"); } @Test void testconstruct_children()