You have 10 guess chance to guess the number between 1 to 100 which is generated randomly. Play with it.
I created a database with txt file.For showing the last result.
When you start the game first time it will ask your name and welcome you.When you finished your game youre score will be update into database.txt file.
When you run it 2nd time it will ask you the name. If name = database update name then it will show the previous score.