Wordle is a word game where the player attempts to guess a 5-letter…
Question Wordle is a word game where the player attempts to guess a 5-letter… Wordle is a word game where the player attempts to guess a 5-letter English word. Each incorrect guess receives feedback in the form of colored tiles indicating how closely the letter matches the target word. This image shows a game with 4 guesses (arise, route, rules, rebus) for the target word, rebus. Guessed letters that exactly match the target word are marked green while letters that are in the target word (but not in the right position) are marked yellow. Letters that aren’t in the target word are marked gray.This result is typically expressed using a pattern of square emojis: each square corresponds to a letter.???????????????????????????????????If you’re having issues viewing the these emojis (e.g., they all appear as white boxes), please make a post on the message board so that staff can help you get it fixed!Absurdle is a variant of Wordle developed by qntm:Wordle picks a single secret word at the beginning of the game, and then you have to guess it. Absurdle gives the impression of picking a single secret word, but instead what it actually does is consider the entire list of all possible secret words which conform to your guesses so far. Each time you guess, Absurdle prunes its internal list as little as possible, attempting to intentionally prolong the game as much as possible.By completing this assignment, students will be able to:Implement a well-designed Java class to meet a given specification.Use sets and maps to create and change nested collections of data.Follow prescribed conventions for code quality, documentation, and readability.A game of AbsurdleSuppose the Absurdle manager only knows the following 4-letter words.ally, beta, cool, deal, else, flew, good, hope, ibexIn Absurdle, instead of beginning by choosing a word, the manager narrows down its set of possible answers as the player makes guesses. If the player guesses “argh” as the first word, the Absurdle manager considers all the possible patterns corresponding to the guess.???? cool, else, flew, ibex????? hope????? good????? beta, deal????? allyThe manager picks the pattern that contains the largest number of target words. In this case, it would pick the pattern ???? corresponding to the target words cool, else, flew, ibex. If the player then guesses “beta”, the manager chooses between the following possible patterns.???? cool????? else, flew?????? ibexThe manager would pick ????? corresponding to the target words else, flew. If the player then guesses “flew”, the manager chooses between the following possible patterns.?????? else???????? flewIn this case, there’s a tie between the possible patterns because both patterns include only 1 target word. The manager chooses the pattern ?????? not because it would prolong the game, but because ?????? appears before ???????? when considering the patterns in sorted order.After this, there’s only a single target word, else. The game ends when the player guesses the target word and the manager is left with no other option but to return the pattern ????????.Constructorpublic AbsurdleManager(Collection


