this might look daunting but 90% of the code is done, I just have to create an intelligent computer player to finish
assignment:
Uses: 2-Dim Arrays, Inheritance, Enumerations For your third programming assignment, you are to add an intelligent player class to the "Go Fish" program done in the class. Specifically, you are to write an IntelligentPlayer class with the following constructor and methods: • Player chooseVictim() // returns the player to be asked for cards. • Rank chooseRank() // returns the rank of the card to be asked for. • void tellOne(Player[] players, Action action, Player player1, Player player2, Rank r, int n) // Used to update the player's knowledge of the other players' cards. The tellOne is used to pass information to the player about what has happened in the game. The possible actions are: • takesCard: player1 takes a card from the stock. • asks: player1 asks player2 for rank r. • gives: player1 gives player2 n cards of rank r. • tellsGoFish: player1 tells player2 to 'Go Fish.' • catches: player1 'goes fish' and gets the card of rank r that was asked for • books: player1 puts down a book of rank r. Program requirements You should write the IntelligentPlayer class and modify the code in the main program to play one intelligent player against three (random) computer players. The class should be a subclass of the Player class. The other classes should not be modified. You must use a 2-dimension array to store the information you've acquired about the other players' hands, and use an enumeration of values to represent what you know about the ranks of cards in the other players' hands.