Question
Make an api that checks the guess word for Wordle against the correct word ad return information for each letter of the guess word. green-
Make an api that checks the guess word for Wordle against the correct word ad return information for each letter of the guess word.
green- correct letter in the correct position
yellow- correct letter
grey/gray - incorrect letter
inputs: correct word, guess word (both strings)
output: green, yellow or grey.gray for each letter of the guess
oxide(correct word)/short( guess word)= GREY, GREY,YELLOW,GREY,GREY
public class Problem3 { public enum Result {GREEN, YELLOW, GREY} private String correctWord; Problem3(string correctWord){ this.correctWord = correctWord; } public Result[] check (String guess){ } public static void main (String[] args){ Problem3 solution = new Problem3("OXIDE"); Result[] result = solution.check("SHORT"); } }
Step by Step Solution
3.36 Rating (149 Votes )
There are 3 Steps involved in it
Step: 1
Heres an implementation of the Problem3 class that checks the guess word against the correct word in ...Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get StartedRecommended Textbook for
International Marketing And Export Management
Authors: Gerald Albaum , Alexander Josiassen , Edwin Duerr
8th Edition
1292016922, 978-1292016924
Students also viewed these Programming questions
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
View Answer in SolutionInn App