Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # Modules
- import random as r
- import time as t
- import sys as s
- # Banner/logo?
- print ("""\
- BBBBBBBBBBBBBBBBB iiii tttt iiii MMMMMMMM MMMMMMMM iiii
- B::::::::::::::::B i::::i ttt:::t i::::i M:::::::M M:::::::M i::::i
- B::::::BBBBBB:::::B iiii t:::::t iiii M::::::::M M::::::::M iiii
- BB:::::B B:::::B t:::::t M:::::::::M M:::::::::M
- B::::B B:::::Biiiiiiittttttt:::::ttttttt cccccccccccccccc ooooooooooo iiiiiiinnnn nnnnnnnn M::::::::::M M::::::::::Miiiiiiinnnn nnnnnnnn eeeeeeeeeeee rrrrr rrrrrrrrr
- B::::B B:::::Bi:::::it:::::::::::::::::t cc:::::::::::::::c oo:::::::::::oo i:::::in:::nn::::::::nn M:::::::::::M M:::::::::::Mi:::::in:::nn::::::::nn ee::::::::::::ee r::::rrr:::::::::r
- B::::BBBBBB:::::B i::::it:::::::::::::::::t c:::::::::::::::::co:::::::::::::::o i::::in::::::::::::::nn M:::::::M::::M M::::M:::::::M i::::in::::::::::::::nn e::::::eeeee:::::eer:::::::::::::::::r
- B:::::::::::::BB i::::itttttt:::::::tttttt c:::::::cccccc:::::co:::::ooooo:::::o i::::inn:::::::::::::::n M::::::M M::::M M::::M M::::::M i::::inn:::::::::::::::ne::::::e e:::::err::::::rrrrr::::::r
- B::::BBBBBB:::::B i::::i t:::::t c::::::c ccccccco::::o o::::o i::::i n:::::nnnn:::::n M::::::M M::::M::::M M::::::M i::::i n:::::nnnn:::::ne:::::::eeeee::::::e r:::::r r:::::r
- B::::B B:::::B i::::i t:::::t c:::::c o::::o o::::o i::::i n::::n n::::n M::::::M M:::::::M M::::::M i::::i n::::n n::::ne:::::::::::::::::e r:::::r rrrrrrr
- B::::B B:::::B i::::i t:::::t c:::::c o::::o o::::o i::::i n::::n n::::n M::::::M M:::::M M::::::M i::::i n::::n n::::ne::::::eeeeeeeeeee r:::::r
- B::::B B:::::B i::::i t:::::t ttttttc::::::c ccccccco::::o o::::o i::::i n::::n n::::n M::::::M MMMMM M::::::M i::::i n::::n n::::ne:::::::e r:::::r
- BB:::::BBBBBB::::::Bi::::::i t::::::tttt:::::tc:::::::cccccc:::::co:::::ooooo:::::oi::::::i n::::n n::::n M::::::M M::::::Mi::::::i n::::n n::::ne::::::::e r:::::r
- B:::::::::::::::::B i::::::i tt::::::::::::::t c:::::::::::::::::co:::::::::::::::oi::::::i n::::n n::::n M::::::M M::::::Mi::::::i n::::n n::::n e::::::::eeeeeeee r:::::r
- B::::::::::::::::B i::::::i tt:::::::::::tt cc:::::::::::::::c oo:::::::::::oo i::::::i n::::n n::::n M::::::M M::::::Mi::::::i n::::n n::::n ee:::::::::::::e r:::::r
- BBBBBBBBBBBBBBBBB iiiiiiii ttttttttttt cccccccccccccccc ooooooooooo iiiiiiii nnnnnn nnnnnn MMMMMMMM MMMMMMMMiiiiiiii nnnnnn nnnnnn eeeeeeeeeeeeee rrrrrrr
- """)
- # Introduction(Delete after read)
- print ('\nHello, welcome to the Bitcoin-Mining simulation by Dima. If this is your first time using this code then change the realusername and realpassword variables to your own login details. Enjoy the simulator!\n')
- t.sleep(1)
- print ('Loading...\n')
- t.sleep(2)
- # Checking username
- username = input('Username: ')
- realusername = ('Dima2007')# REALUSERNAME
- if username == realusername:
- next
- if username != realusername:
- print ('\nUsername cannot be found!')
- s.exit(0)
- # Checking password
- password = input('password: ')
- realpassword = ('Password123')# REALPASSWORD
- if password == realpassword:
- print ('\nAwaiting verification...\n')
- t.sleep(2)
- print ('Account found!\n')
- next
- if password != realpassword:
- print ('\nIncorrect password!')
- s.exit(0)
- #Bitcoin miner variables.
- servers = int(input('\nhow many servers would you like to scan?\n'))
- btcgoal = int(input('\nWhat is the amount of Bitcoin you would like to mine?\n'))
- bitcoin = 0
- number = (r.randint(1, servers))
- scan = (r.randint(0, servers))
- # Loop which scans 'servers' for the random number generated within the range (1, servers) until bitcoin is equal to the btcgoal (Amount of bitcoin you told the machine to mine).
- while bitcoin < btcgoal:
- t.sleep(0.3)
- scan = (r.randint(0, servers))
- print (scan)
- # When it finds bitcoin it will notify you with the message: BITCOIN OBTAINED!
- if scan == number:
- print ('\nBITCOIN OBTAINED!\n')
- bitcoin = bitcoin + 1
- t.sleep(0.2)
- # When it finds the btcgoal (The amount of bitcoin you suggested it to mine) it will notify you with the message: ALL BITCOIN WERE SUCESSFULLY MINED: (btcgoal)
- if bitcoin == btcgoal:
- print ('\nALL BITCOIN WERE SUCESSFULLY MINED:', btcgoal)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement