This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import random | |
import time | |
import sys #imported modules that give program more functionality | |
#this program is basically a game of black jack but there are only 11 cards (1-11) and the goal is to get as close to 21 as possible without going over. You have health and every time you lose you lose health. drain the other persons health to win the game. | |
#definitions, tells what each function does | |
class Blackjack: | |
def __init__(self): #default values for everyone when we first start a game |