class Main {
- public static void main(String[] args) {
- Card c = new Card(Suit.SPADES, Rank.TEN);
- c.reveal();
- System.out.println(c);
+ public static void main(String[] args) {
+ Deck d = new Deck();
+ System.out.println(d);
+
+ while (!d.isEmpty()) {
+ Card c = d.draw();
+ c.reveal();
+ System.out.println(c);
}
+ System.out.println(d);
+ }
+
}