You start with two cards, your goal is to get as close to 21 as possible without going over, while also having a higher number than the dealer. All number cards are face value, while jacks, queens, and kings equal 10. Aces can either be 1 or 11. "Hit" draws you another card, while "Stand" holds your total and ends your turn. Then the dealer starts drawing his total. You lose if you go over 21 or the dealer has a higher number than you. If the dealer goes over 21 or you have a higher number than the dealer, you win. When you tie, it is called a "push" the dealer also has one of his cards face up, so you can carefully decide whether to hit or stand. There are also other elements like splitting and doubling down but I didn't feel like coding all that (also you and the dealer can only draw a certain amount of cards because I didn't feel like adding 20 separate sprites for each individual card)
if you dont know how to play your name prob gabe