Algorithm/Machine learning project (Hangman)
Оплачивается при доставке
Your work is to write an algorithm that plays the game of Hangman through API server.
When a user plays Hangman, the server first selects a secret word at random from a list. The server then returns a row of underscores (space separated)—one for each letter in the secret word—and asks the user to guess a letter. If the user guesses a letter that is in the word, the word is redisplayed with all instances of that letter shown in the correct positions, along with any letters correctly guessed on previous turns. If the letter does not appear in the word, the user is charged with an incorrect guess. The user keeps guessing letters until either (1) the user has correctly guessed all the letters in the word or (2) the user has made six incorrect guesses.
You are required to write a "guess" function that takes current word (with underscores) as input and returns a guess letter. You will use the API codes below to play 1,000 Hangman games.
On a final note I just want to design guess function such that would would output the most probable guess character from dictionary that shall fit into the word. No need to change API code. Also write down why this algo/ml would work best
ID проекта: #36968441