Skip to content

Instantly share code, notes, and snippets.

View Artemovitch's full-sized avatar

Artemovitch

  • Joined Sep 22, 2025
View GitHub Profile
@Artemovitch
Artemovitch / blackjackgame.py
Created October 16, 2025 06:02
blackjack but with my own twist
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