|
@@ -7,8 +7,8 @@ public class War extends CardGame implements Gamble, Game {
|
7
|
7
|
|
8
|
8
|
private ArrayList<Card> tableCards = new ArrayList<Card>();
|
9
|
9
|
|
10
|
|
- War(int minBet, int maxBet) {
|
11
|
|
- super(minBet, maxBet);
|
|
10
|
+ War(int minBet, int maxBet, int ante) {
|
|
11
|
+ super(minBet, maxBet, ante);
|
12
|
12
|
}
|
13
|
13
|
|
14
|
14
|
|
|
@@ -16,14 +16,16 @@ public class War extends CardGame implements Gamble, Game {
|
16
|
16
|
* Specific to war methods
|
17
|
17
|
*/
|
18
|
18
|
public void playCard(){
|
19
|
|
-
|
|
19
|
+ //take a card from the hand
|
|
20
|
+ //add it to the tablecard face up
|
20
|
21
|
}
|
21
|
22
|
|
22
|
23
|
public void warMethod(){
|
23
|
|
-
|
|
24
|
+ //take three cards from your hand face down
|
|
25
|
+ //play one card face up
|
24
|
26
|
}
|
25
|
27
|
|
26
|
|
- public void determineWinner(){
|
|
28
|
+ public void determineWinner(Card player1card, Card player2card){
|
27
|
29
|
|
28
|
30
|
}
|
29
|
31
|
|
|
@@ -40,7 +42,7 @@ public class War extends CardGame implements Gamble, Game {
|
40
|
42
|
}
|
41
|
43
|
|
42
|
44
|
public void Ante(int anteAmount) {
|
43
|
|
- //
|
|
45
|
+
|
44
|
46
|
}
|
45
|
47
|
|
46
|
48
|
/**
|