You are required to create a game that will operate asfollows: -The player will
ID: 3617056 • Letter: Y
Question
You are required to create a game that will operate asfollows: -The player will guess a number between 1 and9 -The computer will then select a random numberbetween 1 and 9 -The program will then compare the two numbers,and if they are equal the player wins and his/her score isincreased by 1. If they are not equal the computer score isincreased by 1. -The player can exit the game by entering -1.When this occurs the players score and the computer score isdisplayed on the screen and the overall winner is congratulated viaan appropriate message on the screen.You are required to create a game that will operate asfollows: -The player will guess a number between 1 and9 -The computer will then select a random numberbetween 1 and 9 -The program will then compare the two numbers,and if they are equal the player wins and his/her score isincreased by 1. If they are not equal the computer score isincreased by 1. -The player can exit the game by entering -1.When this occurs the players score and the computer score isdisplayed on the screen and the overall winner is congratulated viaan appropriate message on the screen.