# Feature #1: Hand of Straights

Implementing the "Hand of Straights" feature for our "Card Game" project.

## We'll cover the following

## Description

For the first feature, we will be working on a variation of Poker. In traditional poker, players form sets of five playing cards, called *hands*. This feature is concerned with a hand of **Straights**. Traditionally, a hand of straight is formed by *five* cards of sequential ranks, such as **9♣**, **8♠**, **7♠**, **6♥**, and **5♥**. However, in our variation of Poker, a number $k$ will be determined by rolling a dice 🎲. Then, a hand of straights is only possible if $k$ sets of cards can be formed using all of the cards in the hand. Each group will consist of $k$ cards of sequential rank.

If the dice rolls a 1, we roll it again. Therefore, we can assume that $k$ will always be in the

2-6range.

Let’s try to understand this better with an example:

Level up your interview prep. Join Educative to access 80+ hands-on prep courses.