python 3


Write a program 3 doors Game .py to play “Three Doors Game.” Your program should draw three buttons labeled “Door 1”, “Door 2,” and “Door 3” in a window and randomly select one of the buttons (without telling the user which one is selected) as a secret button. The program then prompts the user to click on one of the buttons (see Fig. 1). A click on the secrete button is a win, and a click on one of the other two is a loss. You should tell the user whether they won or lost. In the case of a loss, color the clicked button as red and tell the user what the secrete button is (see Fig. 2). In the case of a won, color the secrete button as green and flashes. Your program should be entirely graphical; that is, all prompts and messages should be displayed in the graphics window. Using list to save three buttons, as well as messages. The screenshots of the game are as fowling: Three Button Game Three Button Game Three Button Game Three Button Game Three Button Game Three Button Game I have a secret door You Lost! You Wind Door Door2 Door3 Doort Door2 Doors Door Door2 Doors click to choose my door Door3 is my secrete door Fig. 1 Fig. 2 Click to close Fig. 3 Part C. (Optional) Extend the program from the previous problem by allowing the player to play multiple rounds and displaying the number of wins and losses. Three Button Game Three Button Game Three Button Game You wono, lost1 You Lost You won 0, lost1 Do you want to reply? I have a secret door Door2 Door 3 dick to choose my door Door is my secret door Show transcribed image text Write a program 3 doors Game .py to play “Three Doors Game.” Your program should draw three buttons labeled “Door 1”, “Door 2,” and “Door 3” in a window and randomly select one of the buttons (without telling the user which one is selected) as a secret button. The program then prompts the user to click on one of the buttons (see Fig. 1). A click on the secrete button is a win, and a click on one of the other two is a loss. You should tell the user whether they won or lost. In the case of a loss, color the clicked button as red and tell the user what the secrete button is (see Fig. 2). In the case of a won, color the secrete button as green and flashes. Your program should be entirely graphical; that is, all prompts and messages should be displayed in the graphics window. Using list to save three buttons, as well as messages. The screenshots of the game are as fowling: Three Button Game Three Button Game Three Button Game
Three Button Game Three Button Game Three Button Game I have a secret door You Lost! You Wind Door Door2 Door3 Doort Door2 Doors Door Door2 Doors click to choose my door Door3 is my secrete door Fig. 1 Fig. 2 Click to close Fig. 3 Part C. (Optional) Extend the program from the previous problem by allowing the player to play multiple rounds and displaying the number of wins and losses. Three Button Game Three Button Game Three Button Game You wono, lost1 You Lost You won 0, lost1 Do you want to reply? I have a secret door Door2 Door 3 dick to choose my door Door is my secret door
Expert Answer
Answer to Write a program 3 doors Game .py to play “Three Doors Game.” Your program should draw three buttons labeled “Door 1”, “D…