-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCardTest.java
More file actions
39 lines (36 loc) · 1.2 KB
/
Copy pathCardTest.java
File metadata and controls
39 lines (36 loc) · 1.2 KB
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
/*
Joseph Calise
ID#: 2380565
calise@chapman.edu
CPSC-231 Section 03
MP3A_Cards
*/
public class CardTest {
public static void main(String[] args) {
Dealer dealer = new Dealer();
System.out.println();
System.out.println("First Hand of 10:");
System.out.println(dealer.deals(10));
System.out.println();
System.out.println("Cards left after first deal:");
System.out.println(dealer.size());
System.out.println();
System.out.println("Second Hand of 22:");
System.out.println(dealer.deals(22));
System.out.println();
System.out.println("Cards left after first deal:");
System.out.println(dealer.size());
System.out.println();
System.out.println("Third Hand of 10:");
System.out.println(dealer.deals(10));
System.out.println();
System.out.println("Cards left in deck: ");
System.out.println(dealer);
System.out.println();
System.out.println("Last 10 cards delt:");
System.out.println(dealer.deals(10));
System.out.println();
System.out.println("Deals() method after empty deck:");
System.out.println(dealer.deals(5));
}
}