Building Memory… Day 4 – April 11, 2007

advertisement
Building Memory…
Day 4 – April 11, 2007
We can put cards on the
screen!
• BUT
• We need to put pairs of cards on the
screen in a “random” way
• Creation of the Deckclass
Deck Class
• Creates pairs of cards
• Shuffles cards
Changes to Game
• Creates the Deck and asks the deck
to shuffle
• We can use a shuffle method built
into Java already – don’t have to
write shuffle on our own!
Download