Enter the probability of Player A winning each independent trial (0<p<1), then enter the amount of money both Player A and Player B start with. For Player A to win overall he must win all of Player B's money. The outcomes of each trial will be generated, then the sum of the outcomes generated, and then the sum of the outcomes is graphed. Press space to recalculate with the same initial inputs.
The probability of Player A and Player B winning the whole game is calculated also, and shown in the top left corner. EXAMPLE: Try entering 0.51, then 50, then 75. Put the project in turbo mode and once its finished you can press space to recalculate. You'll see the total number of trials varies widely, and as predicted, Player A wins more often than player B. The ratio of Player A's wins to total games played shows this.