For post-flop computations, enumerate all of the possible boards and figure out who won at the end.

In the case of pre-flop, just sample a *lot* of boards.