Hi,
I became interested in Blackjack and card counting a little while ago - learned from wizardofodds.com and blackjackapprenticeship.com, read books by Dr. Thorp, Lance Humble and Peter Griffin; practiced basic strategy and card counting at home and visited casino in Louisiana a couple of times, but ended up losing money all the time. As I was aware of the "law of large number" and being a full time worker, I wanted to find out how many trials (hands) do I need to play in order to generate some meaningful gain, and whether that many number of casino visit is feasible for me or not. Therefore, I wrote a python script which includes basic strategy, playing deviation (Illustrious 18), card counting and 1 to 8 bet spread strategy. I am providing the Google Colab link below. To my surprise, no matter how many number of trials I ran (Most common streak I ran was 1 million hands. Assuming that casino deals in average of 40 hands/hour, 1 million hand is 25,000 hrs of Blackjack play), my script ended up losing money overall. There are localized streaks of gains, but the overall result is loss. I wonder if anyone else has similar real or virtual (simulated) advantage play experience of losses after losses. My script sort of broke my heart and I am wondering whether I should even think about casino visit counting cards, and been thinking is variance in nature more dominant than we would like to think.
Link to code (written in Python) in Google Colab:
https://colab.research.google.com/dr...oM?usp=sharing
Here is a set of example where I ran one set with playing deviation and another set without playing deviation. Each set contains 100 streaks of 10,000 hands/streak, i.e. 1,000,000 hands total. The screenshots of the bankroll and the game data of each hand is saved under:
https://drive.google.com/drive/folde...2Z?usp=sharing
The rules for the game is "Basic Strategy". User can select where he/she wants to include playing deviation or not. User can define number of deck and deck penetration. I usually run the program with 6 decks, 80% penetration. The BJ pay of 3:2 is hard coded, just like basic strategy and playing deviation - all hard coded. Player does not take insurance, unless the true count is greater that +3, in which case the insurance is automatically triggered. Dealer stands on hard 17, but hits on soft 17; No surrender allowed (that's how they played in the casino I visited in Lake Charles, LA). I can understand that looking at the code might be not a pleasant experience. That is why I have saved some example text file of the game data. There are two txt files (output files) of 1000 rounds of play each. One with playing deviation, and other one without playing deviation. These files show all the hands along with the running/true count, bet adjustment and bankroll updates, deviations if any (based on the true count), and number of cards remain in the deck after each round, for error tracking and game transparency. I tested quite rigorously, found some flaws, corrected, tested again. I do not find any more issues with the game, i.e. it simulates exactly how an advantage player would play in the casino. But according to the program, the player still loses money majority of the time. The game data can be accessed here: https://drive.google.com/drive/folde...uHOMwiEKinuy2Z
I have posted this in some other forum and got some feedback which helped improve the code. But the overall result is still loss. I would very much appreciate if anyone have any suggestion on how can in practicality an AP can lose money, even though he/she suppose to win probabilistically.
Thank you for your time.
I became interested in Blackjack and card counting a little while ago - learned from wizardofodds.com and blackjackapprenticeship.com, read books by Dr. Thorp, Lance Humble and Peter Griffin; practiced basic strategy and card counting at home and visited casino in Louisiana a couple of times, but ended up losing money all the time. As I was aware of the "law of large number" and being a full time worker, I wanted to find out how many trials (hands) do I need to play in order to generate some meaningful gain, and whether that many number of casino visit is feasible for me or not. Therefore, I wrote a python script which includes basic strategy, playing deviation (Illustrious 18), card counting and 1 to 8 bet spread strategy. I am providing the Google Colab link below. To my surprise, no matter how many number of trials I ran (Most common streak I ran was 1 million hands. Assuming that casino deals in average of 40 hands/hour, 1 million hand is 25,000 hrs of Blackjack play), my script ended up losing money overall. There are localized streaks of gains, but the overall result is loss. I wonder if anyone else has similar real or virtual (simulated) advantage play experience of losses after losses. My script sort of broke my heart and I am wondering whether I should even think about casino visit counting cards, and been thinking is variance in nature more dominant than we would like to think.
Link to code (written in Python) in Google Colab:
https://colab.research.google.com/dr...oM?usp=sharing
Here is a set of example where I ran one set with playing deviation and another set without playing deviation. Each set contains 100 streaks of 10,000 hands/streak, i.e. 1,000,000 hands total. The screenshots of the bankroll and the game data of each hand is saved under:
https://drive.google.com/drive/folde...2Z?usp=sharing
The rules for the game is "Basic Strategy". User can select where he/she wants to include playing deviation or not. User can define number of deck and deck penetration. I usually run the program with 6 decks, 80% penetration. The BJ pay of 3:2 is hard coded, just like basic strategy and playing deviation - all hard coded. Player does not take insurance, unless the true count is greater that +3, in which case the insurance is automatically triggered. Dealer stands on hard 17, but hits on soft 17; No surrender allowed (that's how they played in the casino I visited in Lake Charles, LA). I can understand that looking at the code might be not a pleasant experience. That is why I have saved some example text file of the game data. There are two txt files (output files) of 1000 rounds of play each. One with playing deviation, and other one without playing deviation. These files show all the hands along with the running/true count, bet adjustment and bankroll updates, deviations if any (based on the true count), and number of cards remain in the deck after each round, for error tracking and game transparency. I tested quite rigorously, found some flaws, corrected, tested again. I do not find any more issues with the game, i.e. it simulates exactly how an advantage player would play in the casino. But according to the program, the player still loses money majority of the time. The game data can be accessed here: https://drive.google.com/drive/folde...uHOMwiEKinuy2Z
I have posted this in some other forum and got some feedback which helped improve the code. But the overall result is still loss. I would very much appreciate if anyone have any suggestion on how can in practicality an AP can lose money, even though he/she suppose to win probabilistically.
Thank you for your time.