poker hand ranking: fix bug
poker hand ranking: fix bug: a task in smol-software-harbor (Harbor dataset). The hand A 2 3 4 5 is not recognised as a straight by poker/rank.py : the ace can also play low, which makes it a five-high straight (the lowest straight). Fix it so that it ranks as a straight, and a straight flush when…
The task
The hand `A 2 3 4 5` is not recognised as a straight by `poker/rank.py`: the ace can also play low, which makes it a five-high straight (the lowest straight). Fix it so that it ranks as a straight, and a straight flush when suited, while `6-high` straights still beat it. Run `python3 -m pytest -q`.
Part of efederici/smol-software-harbor.