-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathPlayer.h
More file actions
38 lines (34 loc) · 1023 Bytes
/
Player.h
File metadata and controls
38 lines (34 loc) · 1023 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
//
// Created by 차승준 on 25. 5. 25.
//
#ifndef DAVINCICODECPP_PLAYER_H
#define DAVINCICODECPP_PLAYER_H
#include "Card.h"
class Player {
private:
std::vector<Card> hand;
struct probData{
std::string color;
std::vector<int> values;
};
std::vector<probData> prob;
std::vector<int> seqVec;
std::vector<int> blackValVec;
std::vector<int> whiteValVec;
bool debugMode = false;
public:
explicit Player();
std::vector<Card>& getHand();
void setAllShown();
void drawCard(const Card& card);
static bool contains(const std::vector<int>& vec, int target);
int cardAmount();
int shownCards();
void initializeProb(const std::vector<Card>& hand);
void updateProb(std::vector<Card>& hand);
void adjustProb(const std::vector<Card>& hand);
void deleteFromProb(int probIdx, int target);
std::tuple<int, int> guessingAlgorithm(const std::vector<Card>& hand, bool additional);
void debugScreen(const std::vector<Card>& hand);
};
#endif