Create wilddeck and wildcard class which inherits the deck and card classes. You
ID: 660368 • Letter: C
Question
Create wilddeck and wildcard class which inherits the deck and card classes.
Your wilddeck should inherit the deck class and use an array of card pointers to store and manipulate card and wildcard objects. wildcard objects add "JOKER" and "BLANK" cards names; their values default to 0 and can be set to any unsigned short via a member function.
Create a gaps program that displays a randomly generated board and is played by entering the 2 character card description of the card to fit into a gap. Entering "shuffle" will shuffle and replay the unsorted cards on the board. Entering "quit" will end the game and ask if the player wishes to play again. Players win when all the cards are in order (see http://en.wikipedia.org/wiki/Gaps ).
Include documentation for your class definition and implementation.
Explanation / Answer
Suppose you want to add bulk methods to Stack<E>
void pushAll(Collection<? extends E> src);
Related Questions
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.