← 返回 scale.ai 的题目列表Poker Hand Pattern Detection with Wildcard Jokers
类型:online_judge
scale.ai
Use Object Oriented Programming to implement certain aspects of a poker game. The functions should check for poker patterns like flush, straight, full house, 4-of-a-kind, etc. The input is a list of cards and the output is a boolean indicating whether there is a matching pattern. The follow-up question is to modify the functions to consider Jokers as wildcards which can be used to match any rank and suit.
Example
Input
2 hearts, 3 hearts, 4 hearts