dlsun / symbulate

A symbolic algebra for specifying simulations.
MIT License
34 stars 18 forks source link

Low priority: Enhance DeckofCards #32

Open kevindavisross opened 7 years ago

kevindavisross commented 7 years ago

Add methods to DeckofCards that allow easy simulation of typical card shuffling problems. For example, .is_fullhouse(), .is_pair(), etc.

dlsun commented 5 years ago

It seems to me like .is_fullhouse() would only make sense if you were drawing 5 cards and .is_pair() would only make sense if you were drawing 2 cards. If we wanted to implement these, we would have to figure out how to define them no matter how many cards are drawn. What are your thoughts?

kevindavisross commented 5 years ago

This is really low priority for me, so I don't think it's anything we need to worry about now. But I guess we could think of is.fullhouse() as "at least one full house in the hand", and it would just return False if fewer than 5 cards.