{"trustable":false,"sections":[{"title":"","value":{"format":"HTML","content":"\u003cp\u003e\r\n\tIn ``Hangman Judge,\u0026#39;\u0026#39; you are to write a program that judges a series of Hangman games. For each game, the answer to the puzzle is given as well as the guesses. Rules are the same as the classic game of hangman, and are given as follows:\u003c/p\u003e\r\n\u003col\u003e\r\n\t\u003cli\u003e\r\n\t\tThe contestant tries to solve to puzzle by guessing one letter at a time.\u003c/li\u003e\r\n\t\u003cli\u003e\r\n\t\tEvery time a guess is correct, all the characters in the word that match the guess will be ``turned over.\u0026#39;\u0026#39; For example, if your guess is ``o\u0026#39;\u0026#39; and the word is ``book\u0026#39;\u0026#39;, then both ``o\u0026#39;\u0026#39;s in the solution will be counted as ``solved.\u0026#39;\u0026#39;\u003c/li\u003e\r\n\t\u003cli\u003e\r\n\t\tEvery time a wrong guess is made, a stroke will be added to the drawing of a hangman, which needs 7 strokes to complete. Each unique wrong guess only counts against the contestant once.\r\n\t\t\u003cpre\u003e______ \r\n | | \r\n | O \r\n | /|\\ \r\n | | \r\n | / \\ \r\n __|_ \r\n | |______\r\n |_________|\u003c/pre\u003e\r\n\t\u003c/li\u003e\r\n\t\u003cli\u003e\r\n\t\tIf the drawing of the hangman is completed before the contestant has successfully guessed all the characters of the word, the contestant loses.\u003c/li\u003e\r\n\t\u003cli\u003e\r\n\t\tIf the contestant has guessed all the characters of the word before the drawing is complete, the contestant wins the game.\u003c/li\u003e\r\n\t\u003cli\u003e\r\n\t\tIf the contestant does not guess enough letters to either win or lose, the contestant chickens out.\u003c/li\u003e\r\n\u003c/ol\u003e\r\n\u003cp\u003e\r\n\tYour task as the ``Hangman Judge\u0026#39;\u0026#39; is to determine, for each game, whether the contestant wins, loses, or fails to finish a game.\u003c/p\u003e"}},{"title":"Input","value":{"format":"HTML","content":"\u003cp\u003e\r\n\tYour program will be given a series of inputs regarding the status of a game. All input will be in lower case. The first line of each section will contain a number to indicate which round of the game is being played; the next line will be the solution to the puzzle; the last line is a sequence of the guesses made by the contestant. A round number of \u003ctt\u003e-1\u003c/tt\u003e would indicate the end of all games (and input).\u003c/p\u003e"}},{"title":"Output","value":{"format":"HTML","content":"\u003cp\u003e\r\n\tThe output of your program is to indicate which round of the game the contestant is currently playing as well as the result of the game. There are three possible results:\u003c/p\u003e\r\n\u003cpre\u003e\u003cspan style\u003d\"font-family:courier new,courier,monospace;\"\u003eYou win.\r\nYou lose.\r\nYou chickened out.\u003c/span\u003e\u003c/pre\u003e"}},{"title":"Sample Input","value":{"format":"HTML","content":"\u003cpre\u003e\u003cspan style\u003d\"font-family:courier new,courier,monospace;\"\u003e1\r\ncheese\r\nchese\r\n2\r\ncheese\r\nabcdefg\r\n3\r\ncheese\r\nabcdefgij\r\n-1\u003c/span\u003e\u003c/pre\u003e"}},{"title":"Sample Output","value":{"format":"HTML","content":"\u003cpre\u003e\u003cspan style\u003d\"font-family:courier new,courier,monospace;\"\u003eRound 1\r\nYou win.\r\nRound 2\r\nYou chickened out.\r\nRound 3\r\nYou lose.\u003c/span\u003e\u003c/pre\u003e"}}]}