This method determines if the list contain a pair of cards whose cardIndexes point values add to 11. The ArrayList is a list of values representing Important: Integer cardIndexes positions of cards on the board. To get the object at an index you must use card the in the class. cardAt(int k)method Board boolean containsJQK(List<Integer> cardIndexes) This method determines if a list of contain a jack, a queen, and a cardIndexes king in any order. public boolean isLegal(List<Integer> cardIndexes) Determines if the form a valid group for removal. Either two cards cardIndexes that sum up to 11 -or- 3 cards consisting of a J, a Q, and a K. Use the "helper methods" containsPairSum11 and containsJQK to determine if the cards can be removed. boolean anotherPlayIsPossible() This method should also utilize the methods”. It should be very short. “helper Determine if there are any legal plays left on the board. *** Test your code by running the main method in *** ElevensGUIRunner
This method determines if the list cardIndexes contain a pair of cards whose point values add to 11. Important: The ArrayList cardIndexes is a list of Integer values representing positions of cards on the board. To get the card object at an index you must use the cardAt(int k)method in the Board class. boolean containsJQK(List<Integer> cardIndexes) This method determines if a list of cardIndexes contain a jack, a queen, and a king in any order. public boolean isLegal(List<Integer> cardIndexes) Determines if the cardIndexes form a valid group for removal. Either two cards that sum up to 11 -or- 3 cards consisting of a J, a Q, and a K. Use the "helper methods" containsPairSum11 and containsJQK to determine if the cards can be removed. boolean anotherPlayIsPossible() This method should also utilize the “helper methods”. It should be very short. Determine if there are any legal plays left on the board. *** Test your code by running the main method in ElevensGUIRunner ***
Elevens%20Lab%20-%20Haas.docx