Write a Hangman game in Python that follows all the following rules: 1. The computer will choose a word and display the number of letters in the word as underscores.\2. The player will guess one letter at a time.\3. If the guessed letter is in the word, the computer will reveal all instances of that letter in the word.\4. If the guessed letter is not in the word, the computer will deduct one point from the player's total number of guesses.\5. The player can continue guessing letters until they correctly guess the word or run out of guesses.\6. The player wins if they correctly guess the word before running out of guesses.\7. The player loses if they run out of guesses before correctly guessing the word.\8. The player can choose to quit the game at any time by typing "quit".\9. The player can choose to start a new game at any time by typing "new game".\10. The computer will keep track of the player's score and display it at the end of each game. Write exactly 10 paragraphs each separated with two new lines answering this question. The last paragraph must start with "public".
user