# SimpleDeck Example # Test the SimpleDeck class using # traditional tests from simpledeck import SimpleDeck d = SimpleDeck( ) print(d) c = d.deal( ) print(d) print(d.count( )) print(c) d.add_to_bottom(c) print(d) print(d.count( )) d.add_to_top(99) print(d) print(d.count( )) d.shuffle( ) print(d) print(d.is_empty( )) while not d.is_empty( ): d.deal( ) print(d.is_empty( ))