#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:
- 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
-
Enter the value of the dealer's face-up card
-
Blackjack Advisor will return your optimal move based on the probabilities calculated by the Wizard of Odds.
-
Blindly follow Blackjack Advisor's instructions. Possible moves include the following:
- Hit
- Stand
- Split
- Double (if possible), or Hit
- Double (if possible), or Stand
- 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)