Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add more valid items to Fuzzy Logic #84

Merged

Conversation

JeffinsonDarmawan
Copy link

static {
    ITEMS.put("new", "Command: Add a new bouquet");
    ITEMS.put("delete", "Command: Delete a bouquet");
    ITEMS.put("mybouquets", "Command: List all bouquets");
    ITEMS.put("info", "Command: Get information about a flower");
    ITEMS.put("bye", "Command: Exits the programme");
    ITEMS.put("flowers", "Command: List all flowers");
    ITEMS.put("remove","Command: Remove flower(s) from a bouquet");
    ITEMS.put("occasion", "Command: List flowers of specified occasion");
    ITEMS.put("add", "Command: Add flower(s) to a bouquet");
    ITEMS.put("help", "Command: List available commands");
    ITEMS.put("Orchid", "Flower");
    ITEMS.put("Rose", "Flower");
    ITEMS.put("Lily", "Flower");
    ITEMS.put("Daisy", "Flower");
    ITEMS.put("Baby Breath", "Flower");
    ITEMS.put("Chrysanthemum", "Flower");
    ITEMS.put("Hydrangea", "Flower");
    ITEMS.put("Carnation", "Flower");
    ITEMS.put("Wedding", "Occasion");
    ITEMS.put("Valentines", "Occasion");
    ITEMS.put("Mothers Day", "Occasion");
    ITEMS.put("Funeral", "Occasion");
}

@JeffinsonDarmawan JeffinsonDarmawan added type.Enhancement An enhancement to an existing story priority.Medium Nice to have labels Mar 29, 2024
@JeffinsonDarmawan JeffinsonDarmawan added this to the v2.0 milestone Mar 29, 2024
@JeffinsonDarmawan JeffinsonDarmawan self-assigned this Mar 29, 2024
public void printFuzzyInputDetection (String userInput, String bestMatch) {
System.out.println("--> Your input is [" + userInput
+ "] but I am guessing you mean [" + bestMatch + "]");
}

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I like the addition of this message to make it clearer to the user!

@samuelory samuelory merged commit 9d992aa into AY2324S2-CS2113-T11-3:master Mar 29, 2024
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
priority.Medium Nice to have type.Enhancement An enhancement to an existing story
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants