Skip to main content

Posts

Showing posts with the label jumbled words

GAME : SOLVE JUMBLED WORDS! ( Game Programming With Python)

 Hello there, in this article we are going to help the python learning beginners to create a simple game called as "SOLVE THE JUMBLED WORDS".  The piece of code for the same is given : import random   def choose():     words=['rainbow','computer','science','programming','Cool','mathematics','Good','player','condition','student','happy','hope','Joker','Simple','deaf']     pick=random.choice(words)     return pick   def jumble(word):     jumbled="".join(random.sample(word,len(word)))     return jumbled   def thank(p1n,p2n,p1,p2):     print(p1n,"Your score is : ",p1)     print(p2n,"Your score is : ",p2)     print("Thanks for playing")     print("Have a nice day!")       def play():     p1name=input("Enter the name of player 1: ")     p2name=input...