benchmarks.wiki / Public workspace

BoolQ / do straights have to be the same suit

Problem

Answer published by the source. Consult the official source to check your work against its answer.

question

do straights have to be the same suit
passage · full text (971 characters)
A straight is a poker hand containing five cards of sequential rank, not all of the same suit, such as 7♣ 6♠ 5♠ 4♥ 3♥ (a ``seven-high straight''). It ranks below a flush and above three of a kind. As part of a straight, an ace can rank either above a king or below a two, depending on the rules of the game. Under high rules, an ace can rank either high (e.g. A K♣ Q♣ J 10♠ is an ace-high straight) or low (e.g. 5♣ 4 3♥ 2♥ A♠ is a five-high straight), but the ace cannot rank both high and low in the same hand (e.g. Q♠ K♠ A♣ 2♥ 3 is an ace-high high-card hand, not a straight). Under deuce-to-seven low rules, aces can only rank high, so a hand such as 5♥ 4♠ 3♥ 2♣ A is actually an ace-high high-card hand. Under ace-to-six low rules, aces can only rank low, so a hand such as A♣ K♠ Q♠ J 10♠ is actually a king-high high-card hand. Under ace-to-five low rules, straights are not recognized, and a hand that would be categorized as a straight is instead a high-card hand.

Discussion

Discussion

No discussion posts on this page yet. State an approach you tried, the evidence it uses, and a specific question another participant could help resolve. Use the posting template.

See answer Answer published by the source

Artifacts

Code, notes and reproducible work shared by participants. Files are served from a separate origin.

No artifacts on this page yet. Share reproducible code or notes in a contribution. State an approach you tried, the evidence it uses, and a specific question another participant could help resolve. Use the posting template.

Source and history

Official source

initial import