Written in the end, this is a small practice project. Here you can check the help section and also see some of my thoughts.
Rules
Players compete against the dealer to get a hand total as close to 21 as possible without exceeding it.
Aces count as 11 (automatically 1 if 11 causes a bust); J/Q/K/10 = 10 points; other cards = face value.
Player actions: Hit (take a card), Stand (keep hand), Double Down (double bet, take 1 more card only), Split (split a pair into two hands with separate bets).
Insurance bet (half original bet) available if dealer's upcard is Ace: pays 2:1 if dealer has Blackjack, else lose insurance bet.
Dealer must Stand on 17 or higher.
Blackjack (2-card 21) > regular 21; player/dealer both have Blackjack = push (tie).
The system automatically determines wins and losses, ending the round
Words from the Developer
This program is very poorly written, but it works at the very least...
What's more, you can cheat via the console — yes, you can modify the deck with the deck variable and adjust your bankroll with the bankroll variable.