Javascript Blackjack Counter

Posted onby
Javascript Blackjack Counter 4,8/5 3970 votes
  • Appendices
  • Miscellaneous
  • External Links
  1. Javascript Page Counter
  2. Javascript Counter Example
  3. Javascript Blackjack Counter Table
  4. Javascript Counter Code

On This Page

Red Seven was developed by blackjack legend and card counter extraordinaire Arnold Snyder. This system works similar to KO and Hi-Lo, except that there’s a special distinction made for red and black 7s. Here are the basics of Red Seven: 2 to 6 = +1. My favorite programming language now is Javascript, using server-side Node.js and client-side Vue.js. Implementing a tech stack like VENoM removes the context switching inherent in other stacks. Sign in to make your opinion count. Don't like this video? Sign in to make your opinion count. JavaScript HTML Game from Scratch Blackjack: JavaScript game introduction. Speed Count requires an understanding of basic blackjack strategy so that you know how to properly play most gaming situations, but since casinos allow you to carry your strategy card with you to the blackjack table, the creators of the Speed Count method seem to put little emphasis on learning this strategy. Instead, they encourage people who.


The Hi-Lo Count is the most widely written about, and in my judgment, the most commonly used card counting strategy. The High-Low was first introduced in 1963 by Harvey Dubner1. It has since been discussed by just about all the major blackjack writers. In my opinion, the best introductory treatment is in Professional Blackjack by Stanford Wong, and the most detailed coverage is in Blackjack Attack by Don Schlesinger.

How it Works

Following is a brief explanation of how to use the Hi-Lo.

Step 1: Assign a point value to each rank, as follows.

High-Low Point Values

Step 2: Start with a 'Running Count' of zero at the start of the deck/shoe. As cards are revealed, keep adding or subtracting from the Running Count, according to the point system in step 1. For example, if the first ten cards to come out of the shoe were 3, 5, K, 7, Q, A, 8, 5, 4, 2, then the running count would be 1 +1 -1 +0 -1 -1 +0 +1 +1 +1 = +2.

Step 3: Divide the running count by the number of decks remaining, to get what is known as the 'True Count.' This is the part that beginning counters hate. You don?t need to be exact. A rough estimate will do, in my opinion. Let's look at example. The running count is +7 and there are about 4 decks left. The true count would be 7/4 = 1.75. Round that up to 2, to keep it simple. The more you play the more you will be comfortable eyeballing this adjustment, without doing any real division in your head. Usually the right play is obvious. In borderline cases only will you need to do this True Count conversion.

Step 4: The greater the true count, the more you should bet. This is where card counting becomes more art than science. Some blackjack books give rigid rules on how this should be done. However, the casino managers have read these books too, and the patterns recommended in earlier books now set off red flags. How you do this should depend on your own style, and how much heat you are getting. It helps avoid heat to keep the ratio of maximum bet to minimum bet to a limit, known as the ?Bet Spread.? Only increasing bets after a win, only decreasing after a loss, and staying the same after a push, makes play look more natural, but at a cost to profitability.


Step 5: For some hands, you will play according to the True Count and a table of 'Index Numbers,' rather than basic strategy. The greater the count, the more inclined you will be to stand, double, split, take insurance, and surrender. For example, the Index Number for a player 15 against a dealer 10 is +4. This means the player should stand if the True Count is +4 or higher, otherwise hit.

The following tables are known as the 'Illustrious 18' and 'Fab 4' respectively.2 They appear in Blackjack Attack by Don Schlesinger, and are republished here with permission. These are the most important index numbers to remember. Knowing only these will give the counter 80% to 85% of the value of knowing every index number, based on a six-deck game. The difference is more in single and double-deck games. The lists are given in order of value. If you can?t memorize all of them, start at the top, and work your way down.

Illustrious 18

216 Vs. 10+0
315 Vs. 10+4
410,10 Vs. 5+5
510,10 Vs. 6+4
610 Vs. 10+4
712 Vs. 3+2
812 Vs. 2+3
911 Vs. A+1
109 Vs. 2+1
1110 Vs. A+4
129 Vs. 7+3
1316 Vs. 9+5
1413 Vs. 2-1
1512 Vs. 40
1612 Vs. 5-2
1712 Vs. 6-1
1813 Vs. 3-2

The player should stand/double/split if the True Count equals or exceeds the Index Number, otherwise hit. The player should take insurance if the True Count is +3 or greater.

Fab 4 Surrenders

114 Vs. 10+3
215 Vs. 10+0
315 Vs. 9+2
415 Vs. A+1

The player should surrender if the True Count equals or exceeds the Index Number.

A full table of all index numbers can be found in Chapter 3, and Appendix A, of Professional Blackjack by Stanford Wong.

The next table shows some statistics using the High-Low. The blackjack rules this table is based are liberal Vegas shoe, as follows:

Six decks
Dealer stands on soft 17
Surrender allowed
Double after split allowed
Player may resplit to four hands, including aces

To avoid setting off red flags, the simulation increased the bet after a win only, decreased after a loss only, and always stayed the same after a push, except resetting to a minimum bet after a shuffle. The simulation rounded the remaining decks to the nearest half deck, otherwise playing perfectly.

High-Low Statistics

1 to 54I18+F40.157%1.501.35
1 to 104I18+F40.368%2.041.57
1 to 154I18+F40.578%2.671.73
1 to 54.5I18+F40.300%1.601.41
1 to 104.5I18+F40.587%2.271.68
1 to 154.5I18+F40.834%3.061.90
1 to 55I18+F40.469%1.701.47
1 to 105I18+F40.837%2.521.80
1 to 155I18+F41.147%3.492.10
1 to 54.5All0.313%1.611.41
1 to 104.5All0.608%2.291.68
1 to 154.5All0.862%3.101.91
1 to 55All0.494%1.711.47
1 to 105All0.857%2.551.81
1 to 155All1.182%3.542.11

Explantion of columns

Spread: This is the ratio of the player?s minimum bet to maximum bet. The bigger the range, the greater the player?s advantage, and bankroll volatility. A wide bet spread also sets off a red flag. In a six-deck game, I think a 1 to 15 spread is about the most aggressive the player should get. The simulation played one betting spot only.

Penetration: How many decks played before reaching the cut card. In a six-deck shoe, 4.5 is the norm.

Index Numbers: I already explained index numbers above. Simulations were run using both the Illustrious 18 and Fab 4 (I18+F4) above, and with the full table. The difference is not much, which shows that knowing the top 22 gets you most of the benefit of knowing all of them.

Player Advantage: This is the ratio of net player win to total initial bets. For example, in the last row, the player could expect to win 1.182% of his total initial bets.

Standard Deviation: This is a term for the volatility per initial bet.

Average Bet: The average final bet per hand, compared to the lowest bet For example, in the last row, if the player?s minimum bet were $100, his average bet would be $211. This includes additional money bet due to doubles and splits.

This table was created using CVCX Blackjack Analyzer by Casino Vérité. This software produces hundreds of different statistics for just about any set of rules, betting strategies, and playing strategies. For the player who wants to run these tests, this software is the best there is, in my opinion.


Javascript Page Counter

  1. Professional Blackjack by Stanford Wong, page 31, 1994 ed.
  2. Blackjack Attack by Don Schlesinger, page 62, 2004 ed.


Don Schlesinger: For his permission to reprint the Illustrious 18 and Fab 4 tables from his book, Blackjack Attack.
Norman Wattenberger: For his complimentary use of CVCX Blackjack Analyzer by Casino Vérité.



Practice your card counting skills with our trainer.

Javascript Counter Example

Further Reading

Javascript Blackjack Counter Table

  • Card Counting Introduction.
  • Wizard Ace-Five Count: Very easy and simple card counting strategy.
  • '21' Movie Review: Truth and fiction about the movie about the MIT card counting team.
  • Blackjack book reviews.
  • Main blackjack page.

Javascript Counter Code

Written by:Michael Shackleford