Description
Programming
Introduction
We implemented a rudimentary card game in class. The game included three classes, and two enumerations:
Card.java
Deck.java
Game.java
Rank.java
Suit.java
Randomizing an Array using the Fischer Yates Algorithm
We implemented a method for randomizing a deck of cards. However, the algorithm that we provided was rather inefficient. For the first part of this programming assignment, you are to replace the shuffle method with the Fischer Yates algorithm for randomizing an array. For this activity, your changes should be isolated to the source file, Deck.java.
ArrayList
The second part of this assignment is also isolated to the source file, Deck.java. For this part of the assignment, you are to replace the Card array with an ArrayList<Card> in the Deck class.
What to Hand In
The first programming activity, implementing the Fischer Yates Algorithm, store t he changes in a file named Deck_fischeryates.java. For the second activity, replacing the array containing cards in the Deck class with an ArrayList<Card>, store the code changes for the Deck class in a file named Deck_alist.java.





