Exemplo n.º 1
0
Game of BlacJack
'''
import random as rand
from Class import Class as C
from Module import Functions as F
from Global import Global as G

# Lets start playing we are done with all the function we need
print(
    '\n\nWelcome to BlackJack! Get as close to 21 as you can without going over!\n\
    Dealer hits until she reaches 17. Aces count as 1 or 11.\n\n')
print(
    "Stand/Hit/Double down/Surrender/Insurnce/Push: Option are available for now"
)

player_chips = C.Chips()

while True:
    ans = input("You will start with 1000 chips would you like to add more?\n")
    if ans[0].lower() == 'y':
        add_chips(player_chips)
        break
    else:
        ans[0].lower() == 'n'
        break

while G.playing:
    while True:
        if not player_chips.total:
            try:
                ans = input(