made jacks blacker
This commit is contained in:
parent
69dc7f9012
commit
4d3a5252ca
1 changed files with 9 additions and 7 deletions
16
blackjack.py
16
blackjack.py
|
@ -14,7 +14,12 @@ import random
|
||||||
|
|
||||||
def make_card(vs, style):
|
def make_card(vs, style):
|
||||||
value = vs[0]
|
value = vs[0]
|
||||||
suit = vs[1]
|
if value == '0':
|
||||||
|
value = '10'
|
||||||
|
else:
|
||||||
|
value += ' '
|
||||||
|
|
||||||
|
suit = vs[1] + ' '
|
||||||
|
|
||||||
# fuck discord
|
# fuck discord
|
||||||
# suit = suit + '\uFE0E'
|
# suit = suit + '\uFE0E'
|
||||||
|
@ -53,8 +58,8 @@ def make_card(vs, style):
|
||||||
──────┘'''
|
──────┘'''
|
||||||
card_part = f'''\
|
card_part = f'''\
|
||||||
┌──
|
┌──
|
||||||
│{value}
|
│{value}
|
||||||
│{suit}
|
│{suit}
|
||||||
│
|
│
|
||||||
│
|
│
|
||||||
│
|
│
|
||||||
|
@ -154,8 +159,7 @@ def main():
|
||||||
if len(play_deck) < 4:
|
if len(play_deck) < 4:
|
||||||
play_deck = generate_deck()
|
play_deck = generate_deck()
|
||||||
# 5-9 seats
|
# 5-9 seats
|
||||||
players = {'discard':[],
|
players = {'Dealer': [],
|
||||||
'Dealer': [],
|
|
||||||
'Player': []}
|
'Player': []}
|
||||||
|
|
||||||
deal()
|
deal()
|
||||||
|
@ -204,8 +208,6 @@ play_deck = generate_deck()
|
||||||
|
|
||||||
while kill == False:
|
while kill == False:
|
||||||
main()
|
main()
|
||||||
for player in players:
|
|
||||||
print(player)
|
|
||||||
if gameover == 'q':
|
if gameover == 'q':
|
||||||
break
|
break
|
||||||
show_board()
|
show_board()
|
||||||
|
|
Loading…
Add table
Reference in a new issue