In this version, I added a system of "highscore". Basically, the player's score corresponds to your number of attempts in the game, it's going from 20 to 0, and at 0, the player loses the game. So, when the player finds out the correct number, the number of attempts will correspond to their highscore. For example, if the player guesses the correct number at 15 attempts, their highscore will be 15! But, in a second game, the player guesses the number at 13 attempts, the highscore will remain 15.
Now, the game functions correctly, so you can show it to your family or your friends!