## 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 maximized. 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 as well in a Mozilla browser such as Firefox or SeaMonkey since they seem to treat button widths differently. If they are made to line up in Mozilla then they don't line up in other browsers.

**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.