Skip to content

aaruldoss/ProjectBlackJack

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 

Repository files navigation

Welcome to iSchool Style: BlackJack

Team: Alex Acuna, Anthony J. Aruldoss, Daniel Monyei

SIMULATED BLACKJACK GAME

  • DEALER VS. PLAYER
  • REGULAR HIT, STAY, BUST, AND PUSH Options
  • Text Based

How To Play

  • Get the code from our branch labeled Code
  • Run the program in an your software or IDE
  • Follow instructions given in program
  • Remember 'hit' or 'stay' are the input options
  • Enjoy

Rules:

  1. Dealer must STAY on all 17's
  2. When player has 5 cards in hand and value less than or equal to 21, player wins.

Coordinating Directions:

Go To Pages Branch >> README.md To View in plain text << https://github.com/aaruldoss/ProjectBlackJack/tree/Code >>

Go To Code Branch >> ProjectBlackjack(Charlie).py To View the Code

Development Brief

Welcome to iSchool Style: BlackJack

Team: Alex Acuna, Anthony J. Aruldoss, Daniel Monyei

OVERVIEW

  • Approach/Ideology
  • Steps To Functionality
  • Challenges

APPROACH AND IDEOLOGY

Components:

  • Dictionaries
  • Lists
  • Global and local variables
  • If/elif/else statements
  • While loops
  • Print/Prompt/Input statements

Key Tasks:

  • Establishing iSchool Rules
  • A dictionary used to simulate a deck of cards
  • Draw function using random.choice()
  • Summing number of cards in hand/drawed and total card value
  • HIT or STAY
  • Simulating up to 5 player draws
  • PUSH (Ties; Dealer Card Value == Player Card Value)
  • BUST (card value > 21)
  • Aces ( == 11 versus == 1)

STEPS TO FUNCTIONALITY

  1. Dealer vs. Player Variables
  2. Do you want to play (Yes/No?)
  3. random.choice() player 2 cards
  4. State keys (cards in hand) and value
  5. HIT/STAY?
  6. If hit, random.choice() another card
  7. State keys and value
  8. If Ace choose 1 or 11
  9. HIT (instance 1, 2, 3, 4, and/or 5)
  10. WIN? LOST? BUST? PUSH

CHALLENGES

  • Aces to be valued at 1 or 11?
  • Dealing with invalid user inputs
  • Ties
  • First hand == 21
  • Class Storage Name as player & Dealer
  • Creating Rules (Computer Logic vs Human Logic)
  • User Friendliness

About

BlackJack Card Game

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors