Advertisement
Guest User

bad python

a guest
May 12th, 2017
560
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 2.97 KB | None | 0 0
  1. import os
  2. import time
  3. import ctypes
  4. import random
  5.  
  6. ctypes.windll.kernel32.SetConsoleTitleW("-< Welcome! >-")
  7.  
  8.  
  9. os.system("color a")
  10. os.system("cls")
  11.  
  12. print("+----------+")
  13. print("| Welcome! |")
  14. print("+----------+")
  15. print(" ")
  16. username = input("Username: ")
  17. print(" ")
  18. password = input("Password: ")
  19. if username == "Conner" and password == "123":
  20.         print("Logging in...")
  21.         time.sleep(3)
  22. else:
  23.     os.system("color c")
  24.     os.system("cls")
  25.     print("Closing...")
  26.     time.sleep(3)
  27.     exit()
  28.  
  29.     ctypes.windll.kernel32.SetConsoleTitleW("-< Welcome! >-")
  30.  
  31. os.system("cls")
  32. print("Welcome, " + username + "!")
  33. print(" ")
  34. print("Press one for Rock, Paper Scissors and Press 2 for Calculator")
  35. command = input("Command: ")
  36. if command == "1":
  37.     os.system("cls")
  38.  
  39. Goes = 0
  40.  
  41. while Goes <9999:
  42.        
  43.         RPS = ["Rock", "Paper", "Scissors"]
  44.         Computer = random.choice (RPS)
  45.        
  46.         Player1 = input("Pick Rock, Paper or Scissors ")
  47.        
  48.         print("Player choose", Player1, "Computer Choose", Computer)
  49.        
  50.         if Player1 == "Rock" :
  51.                 if Computer == "Rock":
  52.                         print("Draw")
  53.                 elif Computer == "Scissors":
  54.                         print("Player 1 Wins!")
  55.                 else:
  56.                         print("Computer Wins!")
  57.         if Player1 == "r" :
  58.                 if Computer == "Rock":
  59.                         print("Draw")
  60.                 elif Computer == "Scissors":
  61.                         print("Player 1 Wins!")
  62.                 else:
  63.                         print("Computer Wins!")
  64.  
  65.                        
  66.         if Player1 == "Scissors" :
  67.                 if Computer == "Rock":
  68.                         print("Computer Wins!")
  69.                        
  70.                 elif Computer == "Scissors":
  71.                         print("Draw")
  72.                 else:
  73.                         print("Player 1 Wins!")
  74.                        
  75.         if Player1 == "s" :
  76.                 if Computer == "Rock":
  77.                         print("Computer Wins!")
  78.                        
  79.                 elif Computer == "Scissors":
  80.                         print("Draw")
  81.                 else:
  82.                         print("Player 1 Wins!")
  83.                      
  84.         if Player1 == "Paper" :
  85.                 if Computer == "Scissors":
  86.                         print ("Computer Wins!")
  87.                        
  88.                 elif Computer == "Paper":
  89.                         print ("Draw")
  90.                 else:
  91.                         print("Player 1 Wins!")
  92.                        
  93.         if Player1 == "p" :
  94.                 if Computer == "Scissors":
  95.                         print ("Computer Wins!")
  96.                        
  97.                 elif Computer == "Paper":
  98.                         print ("Draw")
  99.                 else:
  100.                         print("Player 1 Wins!")
  101.                
  102.         Goes = Goes +1
  103.      
  104. time.sleep(100)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement