Skip to content

John-L-Jones-IV/mc21

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

mc21

mc21 is designed to simulate, test, and analyze strategies for 21 (Blackjack). A Monte Carlo simulation creates many iterations of a random event to predict trends for random events.

Baseline Findings

A simple strategy to hit until 17 or greater without splits or doubles results in the following:

[baseline-img] exp return: -7.78 +/- 4.776 %

There is much room for improvement.

Quickstart

Assuming git installed:

'''bash $ git clone htps://github.com/John-L-Jones-IV/mc21.git $ python3 mc21 '''

Now that you have sucessfuly cloned and ran the simulations, you are can play with the code and make it your own!

The code

This repo depends on Python 3 and common Python modules such as matplotlib, numpy, and random. The original development environment is just vim and Ubuntu 18.04.

Script outline.

mc21.py - the simulation environment
blackjack.py - a collection of classes and functions used in mc21
Players.py - a collection of special subclasses of Players
strategy.py - functions and structures useful for statiscial strategy

About

Monte Carlo Blackjack Simulations

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages