Regex implemented (Linly brain went brr), Added more actions, RecipeCreation takes string as input now.

This commit is contained in:
2022-06-02 19:47:01 +02:00
parent bfb154873e
commit d7031bd563
2 changed files with 5 additions and 4 deletions

2
.idea/misc.xml generated
View File

@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="ProjectRootManager" version="2" languageLevel="JDK_17" default="true" project-jdk-name="17" project-jdk-type="JavaSDK">
<component name="ProjectRootManager" version="2" languageLevel="JDK_13" default="true" project-jdk-name="17" project-jdk-type="JavaSDK">
<output url="file://$PROJECT_DIR$/out" />
</component>
</project>

View File

@@ -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()