Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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 ... blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

International Marketing And Export Management

Authors: Gerald Albaum , Alexander Josiassen , Edwin Duerr

8th Edition

1292016922, 978-1292016924

More Books

Students also viewed these Programming questions

Question

Describe the parts of the self, according to William James.

Answered: 1 week ago