-
Notifications
You must be signed in to change notification settings - Fork 0
/
display_test2.py
57 lines (45 loc) · 1.49 KB
/
display_test2.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
46
47
48
49
50
51
52
53
54
55
56
57
# from card import Card
# from deck import Deck
# deck = Deck(6)
# hands = []
# for i in range(2):
# hand = []
# for j in range(4):
# hand.append(deck.retrieve_card())
# hands.append(hand)
# hands[1].append(deck.retrieve_card())
# print(hands)
# lengths=[]
# for i in range(len(hands)):
# length = len(hands[i])
# lengths.append(length)
# maximum_cards = max(lengths)
# no_rows1 = round(maximum_cards/4+0.4)
# for i in range(no_rows1):
# for line in range(5):
# row_line = ''
# for hand in hands:
# for card_index in range(i*4, (i+1)*4):
# try:
# if hand[card_index].get_suit() in ['hearts','diamonds']:
# row_line += f"\033[31m{str(hand[card_index]).split('\n')[line]}\033[00m" + " "
# else:
# row_line += str(hand[card_index]).split('\n')[line] + " "
# except:
# row_line += 6*" "
# row_line += 4*" "
# print(row_line)
import pyfiglet, time
# print(pyfiglet.figlet_format("HIT!"))
# print(pyfiglet.figlet_format("STAY"))
# print(pyfiglet.figlet_format("SPLIT!"))
# print(pyfiglet.figlet_format("HIT!"))
print('Continuing to the next Player'.upper(),end=''); time.sleep(0.2)
for __ in range(3):
for _ in range(3):
print('.')
time.sleep(0.2)
print(f'\033[A\033[{30+_}C',end='')
time.sleep(0.2)
print(f'\033[3D\033[K',end='')
print('\033[2K\033[A',end='')