This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 | |
# Iterate folded cards in [0, 14] from undealt_cards then calculate the actual EV. | |
def calculate_ev_for_unseen_cards(undealt_cards, outs): | |
ev_sum = 0 | |
count = 0 | |
for folded_cards in range(0, 15): | |
actual_undealt_cards = undealt_cards - folded_cards | |
# actual_undealt_cards must be a positive number in real life. |