We were supposed to create a blackjack game and were advised to play the game online to get a feel of it. I’ve never played before but got hooked on it and ended up playing on various sites like the FreeGames.org, 247blackjack.com, and brainplay.com.
I get excited in scenarios where I would bust (i.e., lose)
either way (for example, my sum equals 12, I hit and get 22 losing whereby the
dealer’s cards equal 17, 15, or even 13). Hopefully I understand the next time I
see this.
Pushes (draws) did not excite me much. Now I am beginning to
ask myself if I am supposed to be writing about today’s code or the blackjack
game. They are one and the same.
My code so far:
import random
import art
cards = [11, 2, 3, 4, 5, 6, 7, 8, 9, 10, 10, 10, 10]
inquiry = input("Do you want to play a game of Blackjack? Type 'y' or 'n': ")
if inquiry == "y":
print("\n*20")
print(art.logo)
I know we will be making use of lists and the append function, but this might just be all for today :)
Comments
Post a Comment