4 ms·
Here's an implementation in Clojure that scores hands and selects a winner. It handles low vs high ace in straights. https://gist.github.com/mchampine/dca96522
by markc 6y ago
Here's an implementation in Clojure that scores hands and selects a winner. It handles low vs high ace in straights.
https://gist.github.com/mchampine/dca965226148dfd19d5e4d7f3d4600c5 https://gist.github.com/mchampine/dca965226148dfd19d5e4d7f3d...
Most of it was done for a weekly Clojure programming challenge run by Eric Normand in his PurelyFunctional.tv newsletter. You can see all the entries at https://gist.github.com/ericnormand/fbc9b6386a66c1ece590930db07ac604 https://gist.github.com/ericnormand/fbc9b6386a66c1ece590930d...