Method displays different text depending on the state of the game

master
sgoudham 4 years ago
parent 805472afb3
commit dbc9e34839
No known key found for this signature in database
GPG Key ID: EF51A29A50FB754C

@ -11,8 +11,8 @@ public class TableHand extends Hand {
} }
} }
public void display() { public void display(String text) {
System.out.println("Current Deck: "); System.out.println("\n" + text);
for (Entry<Suits, Hand> hand : sevensTableHand.entrySet()) { for (Entry<Suits, Hand> hand : sevensTableHand.entrySet()) {
System.out.println(hand.getKey() + ": " + hand.getValue().toString()); System.out.println(hand.getKey() + ": " + hand.getValue().toString());
} }

Loading…
Cancel
Save