riddlesio / issues

Bug reports and starter bot submissions for the Riddles.io platform
0 stars 0 forks source link

Python poker starter bot ranks hands incorrectly #99

Closed Peachball closed 4 years ago

Peachball commented 6 years ago

The python starter bot downloaded from here does not rank the lowest straight correctly. The error is in line 38 of ranker/ranker.py

is_straight = all(values[i] == values[0] + i for i in range(4)) and values[4] == 12

should be

is_straight = all(values[i] == values[0] + i for i in range(4)) and values[4] == 12 and values[0] == 0