please clarify
When is the 3rd card known, before or after your playing decisions? It seems contradictory. Define your playing decisions. Are you the only player? That's more problems. Then there's number of decks used, and S17/H17 rules. Then there's more problems that the program even works.