-
Notifications
You must be signed in to change notification settings - Fork 3
/
test2.cpp
72 lines (62 loc) · 2.09 KB
/
test2.cpp
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
//============================================================================
// Name : test2.cpp
// Author : Jason Chen
// Version :
// Copyright : Your copyright notice
//============================================================================
#include <iostream>
#include "Card.h"
#include "Hand.h"
using namespace std;
/*int main()
{
Card * one = new Card(5,7);
Hand * han = new Hand(Card(10,1), Card(9,1), Card(8,1), Card(7,1), Card(6,1));
Hand * han1 = new Hand(Card(11,1), Card(11,2), Card(11,3), Card(11,0), Card(14,1));
Hand * han2 = new Hand(Card(5,1), Card(5,2), Card(5,3), Card(8,1), Card(8,2));
Hand * han3 = new Hand(Card(14,1), Card(12,1), Card(9,1), Card(4,1), Card(2,1));
Hand * han4 = new Hand(Card(14,1), Card(13,2), Card(12,0), Card(11,1), Card(10,3));
Hand * han5 = new Hand(Card(4,1), Card(4,2), Card(4,3), Card(7,2), Card(14,0));
Hand * han6 = new Hand(Card(14,1), Card(14,2), Card(6,3), Card(6,2), Card(10,0));
Hand * han7 = new Hand(Card(13,1), Card(13,3), Card(6,0), Card(2,1), Card(5,2));
Hand * han8 = new Hand(Card(4,1), Card(7,2), Card(11,3), Card(13,2), Card(3,0));
cout << "Card number one" << endl;
cout << one->getNumber() << endl;
cout << "Card suit one" << endl;
cout << one->getSuit() << endl;
han->printHand();
cout << "!!!Hello World!!!" << endl;
cout << "Suited?" << endl;
cout << han->suit << endl;
cout << "Quadruple?" << endl;
cout << han->quad << endl;
cout << "Triple?" << endl;
cout << han->trip << endl;
cout << "Double?" << endl;
cout << han->doub << endl;
cout << "Straight?" << endl;
cout << han->conn << endl;
cout << "High Card Value" << endl;
cout << han->high << endl;
cout << "Type Value" << endl;
cout << han->type << endl;
han->printHand();
cout << endl;
han1->printHand();
cout << endl;
han2->printHand();
cout << endl;
han3->printHand();
cout << endl;
han4->printHand();
cout << endl;
han5->printHand();
cout << endl;
han6->printHand();
cout << endl;
han7->printHand();
cout << endl;
han8->printHand();
cout << endl;
return 0;
}*/