Posts

Showing posts from January, 2021

Snake, Water and Gun game in python

here ,       we are going to make a console game in python. This is a very interesting game that we were play in our childhood. The code of game is given below: import  random # Snake Water Gun or Rock Paper Scissors def   gameWin ( comp ,  you ):      # If two values are equal, declare a tie!      if  comp == you:          return   None      # Check for all possibilities when computer chose s      elif  comp ==  's' :          if  you== 'w' :              return   False          elif  you== 'g' :       ...