Project Euler #54: Poker hands

  • + 0 comments

    Yes, and see the following.

    A hand such as A♣ K♣ Q♦ J♠ 10♠ is an ace-high straight (also known as "broadway" or "royal straight"), and ranks above a king-high straight such as K♥ Q♠ J♥ 10♥ 9♣. The ace may also be played as a low card (having a value of "1") in a five-high straight such as 5♠ 4♦ 3♦ 2♠ A♥, which is colloquially known as a "wheel". The ace may not "wrap around", or play both high and low; 3♠ 2♦ A♥ K♠ Q♣ is not a straight.