First is importing the random library and simple functions for the game's start and end.
Then the game. It takes user inputs for names and how much to bet, with checks to see if the bet is over 0 and not more than the money the player has.
It assigns the player and computer a random card - an int from 1-12, and whoever has the higher number wins and gets the money betted.
If the player runs out of money, the game ends. After each card is drawn the player is asked if they want to continue or not.
Coin toss has the same beginning setup, except for a list of coin_sides.
The player and computer/house both start with 100 each. It checks for valid amounts of money- also if the bet amount is a valid integer this time.
Then it asks for heads or tails, case insensitive. The input is converted to 0 or 1 based off the coin_side, so I can do a random integer for the coinflip. I am now properly using the coin_side for heads and tails.
The money gets transferred to the winner, and if the house is in debt the player wins. If the player runs out of money the player loses.