Question: Hangman is a simple 2 - player game where one player picks a word or phrase and the other player tries to guess it .
Hangman is a simple player game where one player picks a word or phrase and the other player tries to guess it Write a MIPS program that reads a word entered by the player, and accepts multiple guesses one letter at a time. This continues until either the player guesses all the letters in the original word or until they have made six guesses where the letter guessed is not in the word. You are not required to keep track of which letters have been guessed. After each guess, if the guessed letter appears in the word then it is printed in its correct spots otherwise a underscore is printed in place of the letter in the word. A newline character should be printed at the end of the state. The ASCII code value of a newline character is the hex number xA If the player guesses all the letters, then print an uppercase W followed by a newline character. If the player runs out of guesses, then print an uppercase L followed by a newline character.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
