Number Guessing Game Enhancement

System randomly generates a four-digit number, for example, 7231. Player inputs a four-digit number, such as 1234, and presses the confirm button. The display shows: 1234---2A1B 9. Here, 1234 is the player's guess, and 9 represents the remaining chances. 2A means two digits are correct in both value and position, while 1B means one digit is correct in value but incorrect in position. The player continues guessing until they either guess correctly or run out of chances. If the chances reach zero, the system reveals the correct number. When a player guesses correctly, the system displays: CONGRATULATIONS!!! 7231 IS RIGHT!. After pressing "Restart," the correct answer is shown for three seconds before the game restarts. The background color can be set with the following parameters: red 50; green 137; blue 200. Players can click 'Help' for assistance or 'Exit' to leave the game.

rar 文件大小:31.11KB