Advertisement
BestDimka

Bitcoin simulator! (Not a real Bitcoin Miner!)

May 6th, 2021
171
-1
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 5.21 KB | None | 0 1
  1. # Modules
  2. import random as r
  3. import time as t
  4. import sys as s
  5.  
  6. # Banner/logo?
  7. print ("""\
  8. BBBBBBBBBBBBBBBBB     iiii          tttt                                                 iiii                        MMMMMMMM               MMMMMMMM  iiii                                                          
  9. B::::::::::::::::B   i::::i      ttt:::t                                                i::::i                       M:::::::M             M:::::::M i::::i                                                          
  10. B::::::BBBBBB:::::B   iiii       t:::::t                                                 iiii                        M::::::::M           M::::::::M  iiii                                                          
  11. BB:::::B     B:::::B             t:::::t                                                                             M:::::::::M         M:::::::::M                                                                
  12.  B::::B     B:::::Biiiiiiittttttt:::::ttttttt        cccccccccccccccc   ooooooooooo   iiiiiiinnnn  nnnnnnnn         M::::::::::M       M::::::::::Miiiiiiinnnn  nnnnnnnn        eeeeeeeeeeee    rrrrr   rrrrrrrrr  
  13.  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  
  14.  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
  15.  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
  16.  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
  17.  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
  18.  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            
  19.  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            
  20. 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            
  21. 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            
  22. 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            
  23. BBBBBBBBBBBBBBBBB   iiiiiiii         ttttttttttt      cccccccccccccccc   ooooooooooo   iiiiiiii nnnnnn    nnnnnn     MMMMMMMM               MMMMMMMMiiiiiiii nnnnnn    nnnnnn    eeeeeeeeeeeeee   rrrrrrr
  24. """)
  25.  
  26.  
  27. # Introduction(Delete after read)
  28. 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')
  29. t.sleep(1)
  30. print ('Loading...\n')
  31. t.sleep(2)
  32.  
  33.  
  34. # Checking username
  35. username = input('Username: ')
  36. realusername = ('Dima2007')# REALUSERNAME
  37.  
  38. if username == realusername:
  39.   next
  40. if username != realusername:
  41.   print ('\nUsername cannot be found!')
  42.   s.exit(0)
  43.  
  44. # Checking password
  45. password = input('password: ')
  46. realpassword = ('Password123')# REALPASSWORD
  47.  
  48. if password == realpassword:
  49.   print ('\nAwaiting verification...\n')
  50.   t.sleep(2)
  51.   print ('Account found!\n')
  52.   next
  53. if password != realpassword:
  54.   print ('\nIncorrect password!')
  55.   s.exit(0)
  56.  
  57.  
  58. #Bitcoin miner variables.
  59. servers = int(input('\nhow many servers would you like to scan?\n'))
  60. btcgoal = int(input('\nWhat is the amount of Bitcoin you would like to mine?\n'))
  61. bitcoin = 0
  62. number = (r.randint(1, servers))
  63. scan = (r.randint(0, servers))
  64.  
  65.  
  66. # 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).
  67. while bitcoin < btcgoal:
  68.   t.sleep(0.3)
  69.   scan = (r.randint(0, servers))
  70.   print (scan)
  71.  
  72. # When it finds bitcoin it will notify you with the message: BITCOIN OBTAINED!
  73.   if scan == number:
  74.     print ('\nBITCOIN OBTAINED!\n')
  75.     bitcoin = bitcoin + 1
  76.     t.sleep(0.2)
  77.  
  78. # 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)
  79. if bitcoin == btcgoal:
  80.   print ('\nALL BITCOIN WERE SUCESSFULLY MINED:', btcgoal)
  81.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement