April 2009 BEATING BLACKJACK CARD COUNTING FEASIBILITY ANALYSIS THROUGH SIMULATION.

Slides:



Advertisements
Similar presentations
Math and Card Games By: Candace DiBiano.
Advertisements

By: Jonathan Quenzer. To have a computer learn how to play Blackjack through reinforcement learning Computer starts off with no memory. After each hand.
© Glenn Rowe AC Lab 2 A simple card game (twenty- one)
It’s All in the Cards Adding and Subtracting Integers
This is the online version of the game of craps. It is a type of simulation game. It’s as though you’re playing on the real table. Craps is played in most.
Lecture 10. Simplified roulette European roulette has numbers 0,1,…36. xD0s
When Intuition Differs from Relative Frequency
Rules for Classroom Play. Setup 1. Remove blue ACTION cards from the Observatory deck 2. Shuffle both decks well and set Volcano deck to one side 3. Deal.
Card Counting What is it, how does it work, and can I use it to pay for college? (and if it does work, do I even have to go to college?) Jeff O’Connell.
BLACKJACK SHARKS: Aabida Mayet, Omar Bacerra, Eser Kaptan March 15, 2010.
Dice, Cards and Darts Probabilities in Games Finding the Right Representation.
An application of the Probability Theory
12 Pontoon1May Pontoon program CE : Fundamental Programming Techniques.
Rene Plowden Joseph Libby. Improving the profit margin by optimizing the win ratio through the use of various strategies and algorithmic computations.
Computer Science 313 – Advanced Programming Topics.
Standard 12.1 Gambling The Costs and Benefits of Gambling.
Design Example. Requirements Make a program that simulates the game of blackjack For now, we ignore money/betting…. just simulate game play But… this.
Centinel tournament ● A deck: the numbers in random order ● A game lasts until no numbers are left in deck ● A game is played like this (first player.
© Oklahoma State Department of Education. All rights reserved.1 The Costs and Benefits of Gambling Standard 12.1 Gambling.
1 Validation and Verification of Simulation Models.
Chapter 5 Black Jack. Copyright © 2005 Pearson Addison-Wesley. All rights reserved. 5-2 Chapter Objectives Provide a case study example from problem statement.
Rapid Recall Activities. Retention of facts is key with the New Curriculum Rolling Dice: Rolling a 10-sided dice and making number bonds to 10 Adding.
Black Jack Dr. Bernard Chen University of Central Arkansas Spring 2012.
Blackjack: A Beatable Game
Blackjack: Myths vs. Reality Group K Andrew KerrAndrew Phillips Sven SkoogWoj Wrona.
Permutations and Combinations
Blackjack: An Analysis of Probability By: John Theobald.
Casinos There’s a reason they are big and extravagant!
1 Introduction to Discrete Probability Rosen, Section 6.1 Based on slides by Aaron Bloomfield and …
Learning to Play Blackjack Thomas Boyett Presentation for CAP 4630 Teacher: Dr. Eggen.
Paigow Training Hai J Shen International Association of Certified Surveillance Professionals.
Blackjack: A Beatable Game Amber Guo Adapted from: David Parker Advisor: Dr. Wyels California Lutheran University ‘05.
Learning to Play KardKuro Goals: Have Fun while Practicing Addition and Subtraction. Improve Social Learning Opportunities with Classmates. Become familiar.
Math Games Compiled By: Joan Bartlett and Heather Bartlett.
Blackjack Betting and Playing Strategies: A Statistical Comparison By Jared Luffman MSIM /3/2007.
Oklahoma’s Personal Financial Literacy Passport © Oklahoma State Department of Education. All rights reserved. 1 Teacher Presentation Series 12 Standard.
Games. Adversaries Consider the process of reasoning when an adversary is trying to defeat our efforts In game playing situations one searches down the.
©2009, Tom McKendree Biplanes ©2009, Tom McKendree.
THE NATURE OF PROBABILITY Copyright © Cengage Learning. All rights reserved. 13.
A Casino Simulator Program Using Advanced C++ Concepts Thomas H. Hand July 25 th, 2005 Software/Hardware Integration.
Probability Evaluation 11/12 th Grade Statistics Fair Games Random Number Generator Probable Outcomes Resources Why Fair Games? Probable Outcome Examples.
History of Probability By James Fosco Math Department Chair Tampa Bay Technical High School Kheyc ie Rome ro.
Lecture 12. Game theory So far we discussed: roulette and blackjack Roulette: – Outcomes completely independent and random – Very little strategy (even.
Functional Question Foundation (Statistics 4) For the week beginning ….
Bell Ringers Solve the following equations and write the commutative property equation and solve: (-74) + 54 (-87) + (-32) Solve the following equations.
GamblingGambling What are the odds? Jessica Judd.
Hold ‘Em. 1.Minimum bet of $10. 2.If you run out of money, talk to the dealer, He/she may be able to help you out. 3.Once your bet is on the table, it.
Copyright © 2010 Pearson Education, Inc. Chapter 16 Random Variables.
Gambling and probability 1. Odds and football.  Predict the Premier League results for this weekend.  Can you estimate the probability of a win/draw/loss.
Statistics 16 Random Variables. Expected Value: Center A random variable assumes a value based on the outcome of a random event. –We use a capital letter,
© Oklahoma State Department of Education. All rights reserved.1 The Costs and Benefits of Gambling Gambling.
Discrete Optimization MA2827 Fondements de l’optimisation discrète Dynamic programming (Part 2) Material based on.
Honors Stats 4 Day 9 Chapter 16. Do Now Check Your Homework Homework: Chapter 16 p. 382 #1, 2, 4, 5, 6, 17, 18 Objective: SWBAT understand and calculate.
Section 5.5 Application: The Card Game of War. 5.5 Application: The Card Game of War A deck of cards is shuffled and dealt to two players The players.
Addition and Subtraction 21
POKER-6S ooA, OOD, OOP.
Rapid Recall Activities
Lecture 11.
Discrete Optimization
Lecture 10.
Dot Cards Face-Off Game
Probability of casino games
Lecture 12.
Let’s Practice Play 2 Missing Digits !
ROULETTE Yasmina, Phoebe, and Roshen.
Blackjack: Counting Hands and Counting Cards
3rd/4th grade Family Math Night Games
Truth tables: Ways to organize results of Boolean expressions.
15 things in 30 minutes 15 new activities to strengthen number work
100 = 1 hundred 100 = 10 tens 100 = 100 ones 1 hundreds tens ones
Presentation transcript:

April 2009 BEATING BLACKJACK CARD COUNTING FEASIBILITY ANALYSIS THROUGH SIMULATION

Outline  The Hype: Why I Chose This Project  Project Objective  Background  The Game of Blackjack  The Basic Strategy  Card Counting Strategy  Simulation Questions  My Model  Assumptions  Development  Screen Shots  Findings  Verification / Validation  Limitations & Future Work

Background: The Hype ® All rights reserved to the original authors and producers

Project Objective  Simulate the game of blackjack and the proposed card counting strategy to determine if it is possible to actually make money doing this and if so, how much.  Determine how different degrees of human error effect monetary outcome.

Background: Blackjack  Player gets two cards (to start, both face up)  Dealer gets two cards (only one is face up)  Player decides whether take another card or not  Objective is to have cards total as close to 21 as possible without going over  Aces are worth 1 or 11  J, Q, K are worth 10  Whoever is closer to 21 (player or dealer) at the end wins  No money moves on ties (“push”)  Dealer goes last  If player goes over (“busts”) he/she automatically looses  Two card Blackjack (Ace, Ten) pays the player 3:2

Background: Basic Strategy  1962 (revised 1966): Thorp exposes simulation derived strategy  Millions of hands simulated (not so impressive anymore)  This strategy, deemed “The Basic Strategy,” setup a set of rules explaining what the best move for every given scenario is.  Basic strategy was later revised to account for the 6 and 8 deck “shoes” instead of 1 deck games.  Puts player at 0.57% disadvantage  Less than one percent… slow loss rate

Background: Basic Strategy

Background: Card Counting  Blackjack: A game with memory  With a finite number of cards per “shoe” each card that comes out during play, tells you a little more about what’s left for next hand. IE: If twenty four 5’s come out with a 6-deck shoe, we know no more 5’s can come out until a re-shuffle happens.  6 Deck Shoe: Memorize 312 Cards? Not Exactly.  High / Low Counting System 2,3,4,5,6  Add 1 to Count 10,J,Q,K,A  Subtract 1 from Count  Use count to determine next bet. [Bet a lot when probability is high for player. Bet minimum when probability is low for player.] Weigh count’s meaning based on number of decks left High count = higher probability of player win (because blackjack pays 3:2)

Questions To Answer  The model should answer the following questions:  What is the rate of loss playing perfect basic strategy?  What is the rate of gain (if any) playing perfect basic strategy and deploying the high/low card counting system flawlessly  Is it possible to make millions using these methods?  How does human error affect the outcome?

Model Assumptions  One player vs. One dealer  Simplification of varying number of players at the table depending on day, time, & location  Time to play 1 million hands  IE. counting with a team of people playing over the course of several months  Assumes no casino detection  Shuffling truly is a random process

Model Development  C# Development  Load cards into a deck array  Load decks into a shoe array  Shuffle entire shoe randomly  Deal cards to player and dealer  Player plays by basic strategy to determine next move  Dealer plays by blackjack standard rules to determine next move  Winner gets paid  Player bets based on deck adjusted count (“true count”)  When end of shoe marker (“cut card”) comes out, shoe is reshuffled  Win, Loss, Push, Blackjack and Bankroll stats are recorded

Screen Shots: Before Run

Screen Shots: After Run

Findings: ROI

Verification  Careful code revision and testing in parts  Tested card counting, basic strategy, and betting modules separately before integrating.  Printed details of 500 hands and manually reviewed each to ensure that the program was applying the appropriate rules and performing proper accounting.  Sent code out to a few friends for peer review  Verified against published basic strategy statistics  v1.0 was producing results that were 0.02% off from documented values (when running basic strategy simulations only) Discovered a minor logic error in basic strategy code

Limitations & Future Work  Limitations:  One player per table  Lots of hands played  Truly random shuffles  Team play not accounted for  No bankruptcy (lowest bankroll can be negative)  Error rates only account for miscounts not for basic strategy errors.  Surprising result when including error.  Future Work:  Simulate team play  Incorporate hide bets and “cover plays”  Model how people come and go from tables  Calculate total time for a team to play x hands.

Questions / Ending Remarks  Code is checked into SourceForge for anyone who wants to check it out.