|
@@ -41,8 +41,12 @@ public class War extends CardGame implements Gamble, Game {
|
41
|
41
|
return 0;
|
42
|
42
|
}
|
43
|
43
|
|
44
|
|
- public void Ante(int anteAmount) {
|
45
|
|
-
|
|
44
|
+ public void payAnte() {
|
|
45
|
+ for(int i = 0; i < super.getPlayers().size(); i ++)
|
|
46
|
+ {
|
|
47
|
+ CardPlayer player = super.getPlayers().get(i);
|
|
48
|
+ player.getPlayer().changeBalance(-super.getAnte());
|
|
49
|
+ }
|
46
|
50
|
}
|
47
|
51
|
|
48
|
52
|
/**
|
|
@@ -54,11 +58,22 @@ public class War extends CardGame implements Gamble, Game {
|
54
|
58
|
}
|
55
|
59
|
|
56
|
60
|
public void StartGame() {
|
57
|
|
-
|
|
61
|
+ Deck deck = new Deck();
|
|
62
|
+ payAnte();
|
|
63
|
+ Deal();
|
58
|
64
|
}
|
59
|
65
|
|
60
|
66
|
public void StartRound() {
|
61
|
|
-
|
|
67
|
+ //player plays a card faceup
|
|
68
|
+ //remove cards from player hand
|
|
69
|
+ //pc plays a card faceup
|
|
70
|
+ //remove cards from npc hand
|
|
71
|
+ //determinewinner
|
|
72
|
+ //add all table cards to winners discard facedown
|
|
73
|
+
|
|
74
|
+ //when player is out of cards
|
|
75
|
+ //shuffle players discard
|
|
76
|
+ //insert discard into hand facedown
|
62
|
77
|
}
|
63
|
78
|
|
64
|
79
|
public void Deal() {
|