Warning: Undefined array key "post_type_share_twitter_account" in /var/www/vhosts/casinonewsblogger.com/public_html/wp-content/themes/cryptocurrency/vslmd/share/share.php on line 24
Welcome to Sam Whitby Coding!
This is episode 5 of the winning at blackjack series on the channel where we will be building a blackjack simulator and using this to derive basic strategy and a optimal bet spread.
In today’s video we will be adding splitting into our blackjack simulating, only splitting when a basic strategy chart tells us that it is right to, this chart is from blackjackapprenticeship.com. Once the splitting of hands has been added into the program, we then run the simulation and see if the results are different from last video, and, if so, does splitting make a positive difference?
https://www.blackjackapprenticeship.com/blackjack-strategy-charts/ is where you can find the splitting basic strategy chart!
Our splitting dictionary for basic strategy:
split_strategy = {
(2, ‘2’): ‘no’, (2, ‘3’): ‘no’, (2, ‘4’): ‘yes’, (2, ‘5’): ‘yes’, (2, ‘6’): ‘yes’,
(2, ‘7’): ‘yes’, (2, ‘8’): ‘no’, (2, ‘9’): ‘no’, (2, ’10’): ‘no’, (2, ‘J’): ‘no’, (2, ‘Q’): ‘no’, (2, ‘K’): ‘no’, (2, ‘A’): ‘no’,
(3, ‘2’): ‘no’, (3, ‘3’): ‘no’, (3, ‘4’): ‘yes’, (3, ‘5’): ‘yes’, (3, ‘6’): ‘yes’,
(3, ‘7’): ‘yes’, (3, ‘8’): ‘no’, (3, ‘9’): ‘no’, (3, ’10’): ‘no’, (3, ‘J’): ‘no’, (3, ‘Q’): ‘no’, (3, ‘K’): ‘no’, (3, ‘A’): ‘no’,
(4, ‘2’): ‘no’, (4, ‘3’): ‘no’, (4, ‘4’): ‘no’, (4, ‘5’): ‘no’, (4, ‘6’): ‘yes’,
(4, ‘7’): ‘no’, (4, ‘8’): ‘no’, (4, ‘9’): ‘no’, (4, ’10’): ‘no’, (4, ‘J’): ‘no’, (4, ‘Q’): ‘no’, (4, ‘K’): ‘no’, (4, ‘A’): ‘no’,
(5, ‘2’): ‘no’, (5, ‘3’): ‘no’, (5, ‘4’): ‘no’, (5, ‘5’): ‘no’, (5, ‘6’): ‘yes’,
(5, ‘7’): ‘no’, (5, ‘8’): ‘no’, (5, ‘9’): ‘no’, (5, ’10’): ‘no’, (5, ‘J’): ‘no’, (5, ‘Q’): ‘no’, (5, ‘K’): ‘no’, (5, ‘A’): ‘no’,
(6, ‘2’): ‘yes’, (6, ‘3’): ‘yes’, (6, ‘4’): ‘yes’, (6, ‘5’): ‘yes’, (6, ‘6’): ‘yes’,
(6, ‘7’): ‘no’, (6, ‘8’): ‘no’, (6, ‘9’): ‘no’, (6, ’10’): ‘no’, (6, ‘J’): ‘no’, (6, ‘Q’): ‘no’, (6, ‘K’): ‘no’, (6, ‘A’): ‘no’,
(7, ‘2’): ‘yes’, (7, ‘3’): ‘yes’, (7, ‘4’): ‘yes’, (7, ‘5’): ‘yes’, (7, ‘6’): ‘yes’,
(7, ‘7’): ‘yes’, (7, ‘8’): ‘no’, (7, ‘9’): ‘no’, (7, ’10’): ‘no’, (7, ‘J’): ‘no’, (7, ‘Q’): ‘no’, (7, ‘K’): ‘no’, (7, ‘A’): ‘no’,
(8, ‘2’): ‘yes’, (8, ‘3’): ‘yes’, (8, ‘4’): ‘yes’, (8, ‘5’): ‘yes’, (8, ‘6’): ‘yes’,
(8, ‘7’): ‘yes’, (8, ‘8’): ‘yes’, (8, ‘9’): ‘yes’, (8, ’10’): ‘yes’, (8, ‘J’): ‘yes’, (8, ‘Q’): ‘yes’, (8, ‘K’): ‘yes’, (8, ‘A’): ‘yes’,
(9, ‘2’): ‘yes’, (9, ‘3’): ‘yes’, (9, ‘4’): ‘yes’, (9, ‘5’): ‘yes’, (9, ‘6’): ‘yes’,
(9, ‘7’): ‘no’, (9, ‘8’): ‘yes’, (9, ‘9’): ‘yes’, (9, ’10’): ‘no’, (9, ‘J’): ‘no’, (9, ‘Q’): ‘no’, (9, ‘K’): ‘no’, (9, ‘A’): ‘no’,
(10, ‘2’): ‘no’, (10, ‘3’): ‘no’, (10, ‘4’): ‘no’, (10, ‘5’): ‘no’, (10, ‘6’): ‘no’,
(10, ‘7’): ‘no’, (10, ‘8’): ‘no’, (10, ‘9’): ‘no’, (10, ’10’): ‘no’, (10, ‘J’): ‘no’, (10, ‘Q’): ‘no’, (10, ‘K’): ‘no’, (10, ‘A’): ‘no’,
(11, ‘2’): ‘yes’, (11, ‘3’): ‘yes’, (11, ‘4’): ‘yes’, (11, ‘5’): ‘yes’, (11, ‘6’): ‘yes’,
(11, ‘7’): ‘yes’, (11, ‘8’): ‘yes’, (11, ‘9’): ‘yes’, (11, ’10’): ‘yes’, (11, ‘J’): ‘yes’, (11, ‘Q’): ‘yes’, (11, ‘K’): ‘yes’, (11, ‘A’): ‘yes’
}
Check out my TikTok:
@samwhitbycoding
🔔 Subscribe for More:
Don’t forget to subscribe for more coding tutorials, coding tips, and in-depth programming guides! Hit the bell icon to receive notifications whenever I upload new content.
👍 Like, Share, and Comment:
If you found this helpful, give it a thumbs up, share it with your friends, and leave a comment with your thoughts or questions. I would love hearing from the coding community!
Tags
python, python series, python tutorials, python tutorial, tutorial, tutorials, code, blackjack, card counting, advantage player, card counter, casino, card count, advantage play, blackjack card counting, card counting blackjack, how to card count, how to beat blackjack, win at blackjack, blackjack simulator, blackjack tutorial, splitting, blackjack strategy, casino games, how to win at blackjack, programming, simulator, simulating blackjack, basic strategy, python simulator
source