I had school work that's why I had not shared anything at the scratch platform. Also, I have shared this project after a long time so this can be bad but I don't think it's bad. I hope you like it. Instructions are in the game.
I saw a number guessing project in Edu blocks which was made of python block codes. I got the idea to make this project by that project only. I would like to thank the creator of that project(Sorry but I don't know his/her username). The code, the scripts and all the things except the idea were made by me.