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 assembly program that reads a word entered by the player. The word is composed of one or more lowercase letters only followed by a newline character. Then read a single, lowercase letter followed by a newline character which is a guess. Print the state of the game after one guess, where if the guessed letter appears in the word then it is printed in the correct spots Otherwise, an 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
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
