-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathPlayer.h
More file actions
33 lines (29 loc) · 715 Bytes
/
Player.h
File metadata and controls
33 lines (29 loc) · 715 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
#pragma once
#include "Board.h"
#include "Card.h"
#include "Record.h"
#include <random>
class Player
{
public:
Board* board;
std::vector<Card*> cards;
std::vector<Card*> discardedCards;
int team;
int sequences;
bool activate();
bool isPlayableCard(int index);
std::vector<Record> derivationsFromCard(int desiredCardIndex);
int performTurn();
void useCard(int desiredCardIndex);
void writeHTMLFile();
void takeCard();
bool isRandomPlayer;
bool isLearner;
std::random_device rd;
std::mt19937 gen;
std::uniform_int_distribution<unsigned long long> dis;
Player(Board* board, int team);
Player::Player(Board* board, int team, bool isRealPlayer); // false means learner ㅇㅅㅇ
~Player();
};