relsqui / protocards

Simple tools for building card games in python.
MIT License
3 stars 1 forks source link

Allow aces to be low in poker straights. #17

Open relsqui opened 10 years ago

relsqui commented 10 years ago

Daniel gave me a good idea for how to implement this: since the need is so specific, just special-case it in the straight-finding function. (Probably a good idea to write a poker-specific wrapper for that and then have best_straights call it.) If there's an ace present, check for 2-low straights and combine it with them.