Poker
Details
Given various poker hands as arguments, print what type of hand each argument is.
The list of hands in ranking order are as follows:
Hand | Cards | Description |
---|---|---|
Royal Flush | πππππ | Ten to Ace of the same suit |
Straight Flush | πππππ | Five consecutive cards of the same suit |
Four of a Kind | ππ π΅π₯π | Four cards of the same rank |
Full House | π¦πΆπππΎ | Three of a Kind combined with a Pair |
Flush | πππππ | Five cards of the same suit |
Straight | ππ©πΈππ | Five consecutive cards |
Three of a Kind | πππ½πΉπ’ | Three cards of the same rank |
Two Pair | π»π«ππ£π² | Two separate pairs |
Pair | πͺπΊπ¨π·π | Two cards of the same rank |
High Card | πππ§π€π³ | No other hand applies |
0 bytes, 0 chars
Restore solution
Compiled from
AT&T syntax to x86-64 Linux. Use
syscalls to write output.
Fennel is an experimental language, no solutions will be saved.
Please leave feedback on the
GitHub issue.
ctrl + enter or