repl.it
@TreyvanMcDonald/

The Search for Bitcoin

Python

dun dun DUUUUUUUUUUUNNNNN!!!!

fork
loading
Files
  • main.py
main.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
import random as r
import time as t
from termcolor import colored as c
import replit as i

i.clear()
numA = r.randint(1,3)
a = 1

def hours():
  input(c("Press ENTER to see how many hours you will have to mine for BITCOIN.", "red"))
  print(c("You will have "+str(numA)+" hour(s)", "red"))

def mine():
  i.clear()
  print("Bitcoin:", bitcoin)
  cou = 1
  t = a
  if t == 1:
    bitcoin = 0
  for x in range(1, numA+1):
    input("Hour"+str(cou)+": ")
    get = r.randint(1, 15)
    if get in range(3, 6):
      input(c("You got 1 BITCOIN!", "green"))
      bitcoin+=1
    elif get in range(7, 10):
      input(c("You got 2 BITCOIN!", "green"))
      bitcoin+=2
    elif get in range(11, 12):
      input(c("You got 5 BITCOIN!", "green"))
      bitcoin+=5
    elif get in range(13, 14):
      input(c("You got 10 BITCOIN!", "green"))
      bitcoin+=10
    elif get == 15:
      input(c("You got 20 BITCOIN!", "magenta", "on_white"))
      bitcoin+=20
    else:
      input("You didn't find anything.")
    t = 2
    cou+=1

hours()
mine()