secvar
secvar2

Security & Variables

• These 2 pieces of code display the security checks and variables for our game.

• Essentially, the security checks verify that the bet amount the player entered isn't over their budget.

• We also make sure that what the player has inputted is a number.

• The code at the top will define the, "Cards" that can be played. Each card has it's value which can be used in game

• In our code we use a "function" to define how we manage when a player gets an Ace. In real blackjack, if you get an ace it will either be worth 1 or 11 depending on the situation and how it favours you.

• As for the function, a function is a piece of code that can be defined once and then reused throughout the entire script. In this case, we use the function to manage the value of the ace card.