-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtable.h
More file actions
33 lines (29 loc) · 764 Bytes
/
table.h
File metadata and controls
33 lines (29 loc) · 764 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
/*
* Straights card game implementation
*
* Table class. Is responsible for keeping track of current cards on table.
*
*/
#ifndef TABLE_H
#define TABLE_H
#include "card.h"
#include <vector>
class Table {
std::vector<Card*> playedClubs;
std::vector<Card*> playedDiamonds;
std::vector<Card*> playedHearts;
std::vector<Card*> playedSpades;
std::vector<Card*> legalPlays;
public:
Table();
~Table();
std::vector<Card*> getPlayedClubs();
std::vector<Card*> getPlayedDiamonds();
std::vector<Card*> getPlayedHearts();
std::vector<Card*> getPlayedSpades();
void generateLegal(std::vector<Card*> playerHand);
std::vector<Card*> getLegalPlays();
bool isLegal(Card*);
void addCard(Card*);
};
#endif