Class Cards

java.lang.Object
GameRules
Cards

public class Cards
extends GameRules
this class manage a full set cards its one of GameRules subclass
  • Constructor Details

    • Cards

      public Cards()
      creat a new cards
  • Method Details

    • getValues

      public java.util.Collection<java.lang.String> getValues()
      return list of 108 cards
      Returns:
      values of cards
    • getValue

      public java.lang.String getValue​(java.lang.String key)
      get card String for given key
      Parameters:
      key - of card
      Returns:
      card
    • removeCard

      public void removeCard​(java.lang.String key, java.lang.String value)
      remove a card with given key and value
      Parameters:
      key - of card
      value - of card
    • containKey

      public boolean containKey​(java.lang.String key)
      check if the given key is available or not
      Parameters:
      key - of card
      Returns:
      true of false