Skip to content

jcreiff/blackjack

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 

Repository files navigation

#Blackjack Advisor

####Tired of losing all your money at the blackjack table in Vegas? Next time, bring along your laptop, open up the terminal, and run blackjack_advisor.rb. You'll be swimming in cash before you know it. Here's how:

  1. Enter the values of your first two cards one at a time
  • for face cards, enter the first letter: [A, K, Q, J]
  • Blackjack Advisor cannot read any other values and will prompt you to try again if there's any funny business
  1. Enter the value of the dealer's face-up card

  2. Blackjack Advisor will return your optimal move based on the probabilities calculated by the Wizard of Odds.

  3. Blindly follow Blackjack Advisor's instructions. Possible moves include the following:

  • Hit
  • Stand
  • Split
  • Double (if possible), or Hit
  • Double (if possible), or Stand
  1. Repeat until rich*

######*Blackjack Advisor not responsible for losses incurred at the blackjack table...at least not until I revisit this code to knock out nightmare mode

######*Assignment from Week 1 of The Iron Yard's Ruby on Rails course (Durham)

About

Blackjack assignment 5/6

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages