Changed it so that hand is printed horizontally instead of vertically.
This commit is contained in:
@@ -89,7 +89,12 @@ public class Human extends Player {
|
||||
List<Card> hand = getHand();
|
||||
for (int i = 0; i < hand.size(); i++) {
|
||||
Card card = hand.get(i);
|
||||
System.out.println("(" + i + ") " + card);
|
||||
if (i == 0) {
|
||||
System.out.println("Your hand: ");
|
||||
System.out.printf("(%s) %s ", i, card);
|
||||
} else {
|
||||
System.out.printf("| (%s) %s ", i, card);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user