A game of Absurdle Suppose the Absurdle manager only knows the…
Question A game of Absurdle Suppose the Absurdle manager only knows the… 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


