Please log in with GitHub in order to save solutions and appear on the leaderboards.


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 characters
arguments holds ARGV, print() to output with a newline, write() to output without a newline.
say() is available without any import.
Implicit output is disabled for this hole. Use Out-Host or Write-Host for output.
ctrl + enter or  Run