@RobertDerry/

Blackjack Test

Python

No description

fork
loading
Files
  • main.py
  • main2.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
import random



firstcardval = random.randint(1,13)*4
firstcard = "FIRSTCARD"

if firstcardval == 1:
  firstcard = "Ace"
elif firstcardval == 2:
  firstcard = "Two"
elif firstcardval == 3:
  firstcard = "Three"
elif firstcardval == 4:
  firstcard = "Four"
elif firstcardval == 5:
  firstcard = "Five"
elif firstcardval == 6:
  firstcard = "Six"
elif firstcardval == 7:
  firstcard = "Seven"
elif firstcardval == 8:
  firstcard = "Eight"
elif firstcardval == 9:
  firstcard = "Nine"
elif firstcardval == 10:
  firstcard = "Ten"  
elif firstcardval == 11:
  firstcard = "Jack" 
  firstcardval = 10
elif firstcardval == 12:
  firstcard = "Queen" 
  firstcardval = 10
elif firstcardval == 13:
  firstcard = "King" 
  firstcardval = 10

print(firstcard)
print("You have a score of " + str(firstcardval))