Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import os
- import time
- import ctypes
- import random
- ctypes.windll.kernel32.SetConsoleTitleW("-< Welcome! >-")
- os.system("color a")
- os.system("cls")
- print("+----------+")
- print("| Welcome! |")
- print("+----------+")
- print(" ")
- username = input("Username: ")
- print(" ")
- password = input("Password: ")
- if username == "Conner" and password == "123":
- print("Logging in...")
- time.sleep(3)
- else:
- os.system("color c")
- os.system("cls")
- print("Closing...")
- time.sleep(3)
- exit()
- ctypes.windll.kernel32.SetConsoleTitleW("-< Welcome! >-")
- os.system("cls")
- print("Welcome, " + username + "!")
- print(" ")
- print("Press one for Rock, Paper Scissors and Press 2 for Calculator")
- command = input("Command: ")
- if command == "1":
- os.system("cls")
- Goes = 0
- while Goes <9999:
- RPS = ["Rock", "Paper", "Scissors"]
- Computer = random.choice (RPS)
- Player1 = input("Pick Rock, Paper or Scissors ")
- print("Player choose", Player1, "Computer Choose", Computer)
- if Player1 == "Rock" :
- if Computer == "Rock":
- print("Draw")
- elif Computer == "Scissors":
- print("Player 1 Wins!")
- else:
- print("Computer Wins!")
- if Player1 == "r" :
- if Computer == "Rock":
- print("Draw")
- elif Computer == "Scissors":
- print("Player 1 Wins!")
- else:
- print("Computer Wins!")
- if Player1 == "Scissors" :
- if Computer == "Rock":
- print("Computer Wins!")
- elif Computer == "Scissors":
- print("Draw")
- else:
- print("Player 1 Wins!")
- if Player1 == "s" :
- if Computer == "Rock":
- print("Computer Wins!")
- elif Computer == "Scissors":
- print("Draw")
- else:
- print("Player 1 Wins!")
- if Player1 == "Paper" :
- if Computer == "Scissors":
- print ("Computer Wins!")
- elif Computer == "Paper":
- print ("Draw")
- else:
- print("Player 1 Wins!")
- if Player1 == "p" :
- if Computer == "Scissors":
- print ("Computer Wins!")
- elif Computer == "Paper":
- print ("Draw")
- else:
- print("Player 1 Wins!")
- Goes = Goes +1
- time.sleep(100)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement