-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtesting.java
More file actions
35 lines (23 loc) · 756 Bytes
/
testing.java
File metadata and controls
35 lines (23 loc) · 756 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
package Blackjack.src.main.java.model;
public class testing {
public static void main(String[] args){
Player player1 = new Player("Terin");
Player player2 = new Player("Britta");
Hand hand = new Hand(5);
Hand[] currentCards = new Hand[1];
currentCards[0] = hand;
player1.setCurrentCards(currentCards);
hand.addCard(BlackJackGame.deck.deal());
player1.hit(0);
player1.hit(0);
currentCards = player1.getCurrentCards();
hand = currentCards[0];
System.out.println(hand);
System.out.println(hand.getHandValue());
player1.hit(0);
currentCards = player1.getCurrentCards();
hand = currentCards[0];
System.out.println(hand);
System.out.println(hand.getHandValue());
}
}