-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathPattern.cpp
More file actions
47 lines (26 loc) · 784 Bytes
/
Pattern.cpp
File metadata and controls
47 lines (26 loc) · 784 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
#include "Pattern.h"
//We string the pattern of the playerCards to print it
std::string Pattern::patternToString() {
switch(PatternValue) {
case Patterns::HIGHCARD:
return "Highcard";
case Patterns::PAIR:
return "Pair";
case Patterns::TWO_PAIRS:
return "TwoPairs";
case Patterns::THREE_OF_A_KIND:
return "ThreeOfAKind";
case Patterns::STRAIGHT:
return "Straight";
case Patterns::FLUSH:
return "Flush";
case Patterns::FULL_HOUSE:
return "FullHouse";
case Patterns::FOUR_OF_A_KIND:
return "FourOfAKind";
case Patterns::STRAIGHT_FLUSH:
return "StraightFlush";
default:
break;
}
}