The game's rules are:
A player needs to pick 3 cards from a big lot of cards. There are 4 types
of Cards namely Spade(s), Heart(H), Club(C) and Diamond (D). If all the
3 cards that the player picks are of the same type and same number,
they get a Double Bonanza. If all the 3 cards are of the same type or if
they all have the same number, they get a Bonanza. Otherwise they do
not get a Bonanza. Alan has now picked 3 cards and is awaiting to
know if he has got a bonanza. Please help him to know if he has won
the Bonanza or not.
Input format
There are 3 lines of input.
Each of the line consists of character and integer input, which
corresponds to the type of the card and the number in it that Alan
picked. The type of card and the number are separated by a single
space.
Output format
output should display "double Bonanza" or "bonanza" or "no bonanza"
Answers
Answered by
10
what should i answer?????
Answered by
0
Answer:
In the stud poker, every player has five cards in hand. ... 4. Three of a kind: Three cards of the same value. 5. ... No need to check if the same card appears twice (for example two 3 heart).
Explanation:
please marked me as brainlest please
Similar questions
History,
3 months ago
Hindi,
3 months ago
Math,
7 months ago
Social Sciences,
7 months ago
English,
10 months ago