Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import random
- import math
- def boot():
- print """ _____________ _____________
- | | |
- | | |
- | | |
- | | |
- | | |
- |_____________|_____________|
- | | |
- | | |
- | | |
- | | |
- | | |
- |_____________|_____________|
- Welcome to Windows.
- Please wait while we check your peripherals..."""
- def username():
- uname = raw_input("Username:")
- password = raw_input("Password:")
- if uname == "stpetersprep" and password == "password":
- print "Logging in..."
- else:
- hint = raw_input("Do you need a hint?")
- if hint == "yes" or hint == "Yes":
- print "'stpetersprep' is the username and 'password' is the password"
- username()
- elif hint == "no" or hint == "No":
- tryagain = raw_input("Would you like to try again?")
- if tryagain == "yes" or tryagain == "Yes":
- username()
- else:
- restart2 = raw_input("Would you like to restart?")
- elif restart2 == "Yes" or restart2 == "yes":
- boot()
- peripherals()
- else:
- print "Shutting down..."
- boot()
- print "\n", "=" *54
- def peripherals():
- mouse = random.randint(1, 11)
- if mouse <= 7:
- mouse = 1
- print "\nMouse: %s" % "Connected"
- else:
- mouse = 2
- print "\nMouse: %s" % "Disconnected"
- keyboard = random.randint(1,11)
- if keyboard <= 5:
- keyboard = 1
- print "\nKeyboard: %s" % "Connected"
- else:
- keyboard = 2
- print "\nKeyboard: %s" % "Disconnected"
- monitor = random.randint(1, 11)
- if monitor <= 9:
- monitor = 1
- print "\nMonitor %s\n" % "Connected"
- else:
- monitor = 2
- print "\nMonitor not connected.\n \nYou can't even see this right now.\n"
- if mouse == 1 and keyboard == 1 and monitor == 1:
- print "Your peripherals are connected... Please enter your username and password"
- username()
- elif mouse == 2 or keyboard == 2 or monitor == 2:
- print "Your peripherals are not connected, please restart."
- restart = raw_input("Would you like to restart?")
- if restart == "Yes" or restart == "yes":
- print "\n" * 5
- boot()
- peripherals()
- else:
- print "Shutting down..."
- peripherals()
Add Comment
Please, Sign In to add comment