## Programs

**Composition Dependent Combinatorial Analyzer (cdca) - **

*Last update 12-23-2016 - execution is faster by virtue of web host upgrade (program otherwise unchanged)*

A program that computes blackjack expected values for various rules. Number of decks input can be 1 to 41,297,762. Shoe composition can be anything as long as cards in shoe are sufficient to complete all possible hands for 1 player and dealer. Expected values can be computed for 3 general cases:

- It is the start of a round and that's all player knows - overall EV is computed
- It is the start of a round but player knows his first card - overall EV is computed
- Player knows 2 or more cards - hand EVs are computed

- Initial display is overall expected values for single deck and a default set of rules.
- Expected values can be computed using best strategy or full shoe CD basic strategy.

Please note that what is called "optimal" means that only expected value for all non-split hands is absolutely optimal. Expected value for split hands is computed using a fixed strategy which may be optimal but isn't necessarily absolutely maximized in all cases. This version of the program computes the same as the previous version but has a different and hopefully nicer GUI. The buttons don't line up the same in all browsers since each treats button widths differently. If they are made to line up fairly well in one particular browser then they may not line up in other browsers. Changing your browser's display settings can help to improve this.

**Desktop version of cdca (requires Microsoft Windows environment)**

I have had several requests for an offline version of cdca. I am making this version available for the nominal price of $10.00. This is the version I developed several years ago on an older version of Microsoft Windows. It is a 32-bit GUI program. It has essentially the same user interface as the online version. One feature that the desktop version has is the option to check for an "out of cards" condition. For a combinatorial analyzer to be accurate it requires that all drawing sequences be completed. If too few cards remain then 1 or more drawing sequences may not be possible to complete causing display of inaccurate values. This feature is meant to flag those cases, causing a message that insufficient cards remain without displaying any values.

One zipped file named setup.zip will be downloaded. Unzip to its own folder. It will contain 2 files - ReadMe.txt and mysetup.exe. Executing mysetup.exe will install cdca on your Windows computer but first ReadMe.txt needs to be consulted since mysetup.exe is password protected.

**Risk of Ruin Calculator - **This program computes the probability of a gambler losing an amount that is input before winning an amount which is also input. Program assumes probability of winning any given bet is constant and this probability is the final input. Program assumes all bets are paid at even money (1:1). A newly added feature of this version of the program allows for incorporating the probability of a tie into the calculation. The previous version assumed only either a win or loss was possible on any bet.