Jonathan Hinds 6 лет назад
Родитель
Сommit
5aa441ffd0
1 измененных файлов: 8 добавлений и 6 удалений
  1. 8
    6
      src/main/java/io/zipcoder/casino/War.java

+ 8
- 6
src/main/java/io/zipcoder/casino/War.java Просмотреть файл

7
 
7
 
8
     private ArrayList<Card> tableCards = new ArrayList<Card>();
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
      * Specific to war methods
16
      * Specific to war methods
17
      */
17
      */
18
     public void playCard(){
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
     public void warMethod(){
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
     }
42
     }
41
 
43
 
42
     public void Ante(int anteAmount) {
44
     public void Ante(int anteAmount) {
43
-        //
45
+
44
     }
46
     }
45
 
47
 
46
     /**
48
     /**