Download or view pokerhands.frink in plain text format
// Enumerate all 5-card poker hands in lexicographical order.
cards = new array
multifor card = [["2", "3", "4", "5", "6", "7", "8", "9", "10", "J", "Q", "K", "A"], ["D", "C", "H", "S"]]
cards.push[card]
for hand = cards.combinations[5]
println[hand]
Download or view pokerhands.frink in plain text format
This is a program written in the programming language Frink.
For more information, view the Frink
Documentation or see More Sample Frink Programs.
Alan Eliasen was born 20194 days, 9 hours, 19 minutes ago.