I am looking for help on writing software to run simulations. I have written a program in machine language for a handheld calculator (HP48 Series). This is not intended to have greater sophistication than many of the software programs available. It is meant for rough approximations but use accurate algorithms. My program can currently be configured for various numbers of decks, i.e., 1, 2, 4, 6 and 8. It can also be configured for various counting and playing strategies. I wish to draw cards from the shuffled deck(s). I want to simulate specific playing strategies. I have the following questions:
1. When running a simulation for a specific hand, e.g., player stands on a 5 and 7 against a dealer�s 3, I would remove the 5, 7 and 3 from a shuffled deck(s). Then, draw from the remaining cards to get the dealer to stand or bust. Should I shuffle the cards again for each successive hand or just continue to draw additional cards from the remaining deck(s)?
**If the answer is to continue to draw additional cards, for the next hand I would just draw to get the dealer to stand or bust with his show card or 3 (I would not have to remove 5, 7 and 3 again).
2. When running a simulation for a specific hand, e.g., player stands on a 5 and 7 against a dealer�s 3 when count is plus 3, I would remove the 5, 7 and 3 from a shuffled deck(s). Then:
**If the count were 3 or higher, I would stand and then draw from the remaining cards to get the dealer to stand or bust.
**If the count were less than 3, I would draw from the remaining cards until the count became 3 or higher. Then, draw to get the dealer to stand or bust.
Once I have collected data, how would I compute EV from:
The number of hands played
The number of wins, losses and pushes

