|
@@ -15,7 +15,8 @@ public class GoFish extends CardGame {
|
15
|
15
|
public static void main(String[] args) {
|
16
|
16
|
System.out.println();
|
17
|
17
|
}
|
18
|
|
- public GoFish(){
|
|
18
|
+
|
|
19
|
+ public GoFish() {
|
19
|
20
|
readyPlayers();
|
20
|
21
|
runGame();
|
21
|
22
|
}
|
|
@@ -41,47 +42,47 @@ public class GoFish extends CardGame {
|
41
|
42
|
super.dealCards(player, numberOfCards);
|
42
|
43
|
// dealPile = dealPile - numberOfCards;
|
43
|
44
|
}
|
44
|
|
-//
|
45
|
|
- public void updateDrawPile() {
|
46
|
45
|
|
47
|
|
- public void play() {
|
48
|
|
- for (int i = 0; i }
|
|
46
|
+ //
|
|
47
|
+ public void updateDrawPile() {
|
49
|
48
|
|
50
|
|
- int setsCount;
|
|
49
|
+// public void play() {
|
|
50
|
+// for (int i = 0; i }
|
51
|
51
|
|
|
52
|
+// int setsCount;
|
52
|
53
|
|
53
|
54
|
|
54
|
|
- //while (drawPile > 0) {
|
55
|
|
- //public void questionPlayer(String cardRank, Player player) {
|
|
55
|
+ //while (drawPile > 0) {
|
|
56
|
+ //public void questionPlayer(String cardRank, Player player) {
|
56
|
57
|
//start w/ player
|
57
|
58
|
//for (deck.size aka (52 cards - numOfCards per player))
|
58
|
|
- //askPlayerQuestion(); Prompt w/ question of who to ask [console output?]
|
59
|
|
- //take userInput [console input?]
|
60
|
|
- //askPlayerCard(); Prompt w/question of what card (rank) to look for [console output?]
|
61
|
|
- //take userInput[console input?]
|
62
|
|
- //for cardHand(chosen player)
|
63
|
|
- //evalCards(userInput): If userInput.equals(card[i].cardGetValue)
|
64
|
|
- //swap();
|
65
|
|
- //repeat until userInput != cardGetValue
|
66
|
|
- //else
|
67
|
|
- //goFish(); draw a card from Deck - (deck - 1)
|
68
|
|
- //move to next player;
|
|
59
|
+ //askPlayerQuestion(); Prompt w/ question of who to ask [console output?]
|
|
60
|
+ //take userInput [console input?]
|
|
61
|
+ //askPlayerCard(); Prompt w/question of what card (rank) to look for [console output?]
|
|
62
|
+ //take userInput[console input?]
|
|
63
|
+ //for cardHand(chosen player)
|
|
64
|
+ //evalCards(userInput): If userInput.equals(card[i].cardGetValue)
|
|
65
|
+ //swap();
|
|
66
|
+ //repeat until userInput != cardGetValue
|
|
67
|
+ //else
|
|
68
|
+ //goFish(); draw a card from Deck - (deck - 1)
|
|
69
|
+ //move to next player;
|
69
|
70
|
//checkSets: run through each cardHand and looks for 4 of a kind;
|
70
|
|
- //if found, setsCount++;
|
71
|
|
-
|
|
71
|
+ //if found, setsCount++;
|
72
|
72
|
|
73
|
73
|
|
74
|
|
- public void evalCards() {
|
75
|
|
- //for cards in dealerHand:
|
76
|
|
-// swap cards or go fish
|
77
|
|
- }
|
78
|
|
-
|
79
|
|
- public void goFish() {
|
80
|
|
- //pull from top of deck
|
81
|
|
- }
|
|
74
|
+// public void evalCards() {
|
|
75
|
+// //for cards in dealerHand:
|
|
76
|
+//// swap cards or go fish
|
|
77
|
+// }
|
|
78
|
+//
|
|
79
|
+// public void goFish() {
|
|
80
|
+// //pull from top of deck
|
|
81
|
+// }
|
|
82
|
+//
|
|
83
|
+// public void checkSets() {
|
|
84
|
+// // check if 4 in dealerHand have same value
|
|
85
|
+// }
|
82
|
86
|
|
83
|
|
- public void checkSets() {
|
84
|
|
- // check if 4 in dealerHand have same value
|
85
|
87
|
}
|
86
|
|
-
|
87
|
88
|
}
|