3 ms·
This is very neat, but I don't think it works for straights. For example how do these two hands compare? A 2 3 4 5 2 3 4 5 6 Maybe there is a way we can ext
by mateo411 9y ago
This is very neat, but I don't think it works for straights.
For example how do these two hands compare?
A 2 3 4 5
2 3 4 5 6
Maybe there is a way we can extend this to work for straights.
- _asummers 9y agoYou would have those rankings precomputed beforehand. So you'd know A 2 3 4 5 is one straight, but its computed hash would have a higher ranking than 2 3 4 5 6 in the lookup table. The A straight might go to 735 and the 2 3 4 5 might go to 785 or something There is work to do in the construction of the list, but that happens once, and likely gets loaded from disk after it's created out of band.