-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathPoker.h
98 lines (56 loc) · 2.41 KB
/
Poker.h
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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
#ifndef _POKER_H_
#define _POKER_H_
int ChooseMenu();
void Menu();
void LoadingMenu();
/*void printCardsShuffling(int deck[][], char* suits[], char* faces[]);
int** dealingForHand(int deck[SUITS][FACES]);
void printHand(int** hand, char* suits[], char* faces[]);
int** createHandTest(int deck[SUITS][FACES]), int a[]);
int isFourOfAKind(int** hand);
int isFullHouse(int** hand);
int isFlush(int** hand);
int isStraight(int** hand);
int isStraightFlush(int** hand);
int isThreeOfAKind(int** hand);
int isTwoPairs(int** hand);
int isPair(int** hand);
int getHighestCard(int** hand);
// Game Play n Player
int*** dealingForHands(int deck[SUITS][FACES], int n);
int getStatusOfHand(int** hand);
int* rankingHands(int*** hands, int n);
int evaluateHands(...);*/
/*3.∗ Write a poker game for dealer side.The dealer also receives five cards,
yet he may additionally draw one, two or three cards to replace some old
cards(new cards are continuously drawn from the current deck).
The replacement of one, two, or three cards from the set of five cards can
be decided following(1) random replacement or (2) replace to get better
situation.
4.∗∗∗ Write a program that lets a player and the dealer compete with each
other.The player may decide whether to additionally draw one, two or
three cards or not.
5.∗∗∗∗ Replace the decision making algorithm of the dealer to have different
game levels(easy, medium and hard)*/
void shuffleCards(int(&deck)[SUITS][FACES]);
pair<int, int> searchCardPos(int deck[SUITS][FACES], int num);
void printCardShuffling(int deck[SUITS][FACES]);
int** dealingForHand(int deck[SUITS][FACES], int turn = 1, int numberOfPlayers = 2);
int*** dealingForHands(int deck[SUITS][FACES], int numberOfPlayers = 3);
void dealing(Player** &players, int numberOfPlayers);
void printHand(int** hand);
map<int, int> countRank(int** hand);
int isFourOfAKind(int** hand);
int isFullHouse(int** hand);
int isFlush(int** hand);
int isStraight(int** hand);
int isStraigntFLush(int** hand);
int isThreeOfAKind(int** hand);
int isTwoPairs(int** hand);
int isPair(int** hand);
int getHighestCard(int** hand);
int getStatusOfHand(int** hand);
int* rankingHands(int*** hands, int numberOfPlayers);
void showHands(Player** players, int numberOfPlayers);
void printWinners(Player** players, int numberOfPlayers, vector<int> winnerList, int numberOfWinners);
void evaluateHands(Player** &players, int numberOfPlayers);