-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathPlay.cpp
More file actions
59 lines (50 loc) · 785 Bytes
/
Play.cpp
File metadata and controls
59 lines (50 loc) · 785 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
47
48
49
50
51
52
53
54
55
56
57
58
59
#include <iostream>
#include <string>
#include <vector>
#include <cstdlib>
#include "Card.h"
#include "Play.h"
#include "Pair.h"
#include "Single.h"
using namespace std;
Play::Play()
{
Card i(0,0);
kindcode=1;
maxCard=i;
}
Play::Play(Single a)
{
kindcode=1;
maxCard=*(a.maxCard);
}
Play::Play(Pair a)
{
kindcode=2;
maxCard=*(a.maxCard);
}
Play::Play(int a,int b)
{
kindcode=a;
maxCard=b;
}
Play::Play(Three a,Pair b)
{
kindcode=3;
maxCard=*(a.maxCard);
}
Play::Play(Four a,Single b)
{
kindcode=4;
maxCard=*(a.maxCard);
}
Play::Play(Straight a)
{
kindcode=5;
maxCard=*(a.maxCard);
}
Play::Play(Straight a,int b)
{
kindcode=6;
maxCard=*(a.maxCard);
}