Simple Guess Game written in Python

Simple Python Game

The game that I created is an simple guessing game written in Python. Here, first the program asks for your username  and greets you with a Hello. Then, it asks whether you would like to play a game or not?. If answered Yes then the game begins where you guess a number and if answered No,  then it prints “Oh Okay…”. This script is an interactive guessing game, which will ask the user to guess a number between 1 and 20. We are using the random module with the randint function to get a random number. The script also contains a while loop, which make the script run until the user guess the right number.

Things you need to install to run this project

  1. You have to install python 2.7 or python 3.
  2. You can install any IDE like Pycharm, Atom, Vim or notepadd++.

You can edit the above project and can make your own system. It is a very simple project where the datas are entered. You have to type python gym.py to run this project in terminal. You can also run this project on Pycharm or any IDE’s.
I have not used any library on this project so this is so simple and reliable.
Click on below button to download this project.
Download

Leave a Reply

Your email address will not be published. Required fields are marked *