Tuesday, December 5, 2017

How to guess a word in python?

Time again for a game script. How it works This is a classic "guess a word" program.
The word to guess is represented by a row of dashes. If the player guess a letter which exists in the word, the script writes it in all its correct positions.  The player has 5 chances to guess the word. You can easily customize the game by changing the variables.
Code :
C:\Users\SSS2014033\Desktop\cs1.JPG

C:\Users\SSS2014033\Desktop\c2.JPG

C:\Users\SSS2014033\Desktop\c3.JPG

Save this program as “Guess the secret word.py” as shown below:

C:\Users\SSS2014033\Desktop\gs1.png


To start the guessing word, enter the user name.
C:\Users\SSS2014033\Desktop\gs2.png
Now the user can start guessing the word by entering characters, as shown below:
C:\Users\SSS2014033\Desktop\gs3.png


Enjoy it!

6 comments:

  1. Thank you a lot for providing individuals with a very spectacular possibility to read critical reviews from this site.R programming Training in chennai

    ReplyDelete
  2. Very interesting. You can see that you are great in this industry. are you generally interested in programming or programming?
    I will be happy to learn more about cloud solutions because I plan to implement them from pro4people.com/aws-cloud-solutions/.
    What do you think about this solution? Do you think it's a good idea for a small company or not?

    ReplyDelete
  3. Very interesting. You can see that you are great in this industry,providing individuals with a very spectacular possibility Thank you so Much

    Surya Informatics

    ReplyDelete
  4. Your info is really amazing with impressive content..Excellent blog with informative concept. Really I feel happy to see this useful blog, Thanks for sharing such a nice blog..
    If you are looking for any Data science Related information please visit our website data science institutes in bangalore page!

    ReplyDelete