Package test

Class Tile.Bag

java.lang.Object
test.Tile.Bag
Enclosing class:
Tile

public static class Tile.Bag extends Object
  • Field Details

  • Method Details

    • getLetters

      public Tile[] getLetters()
    • getRand

      public Tile getRand()
      The getRand function returns a random tile from the bag.
      Returns:
      A random tile from the bag
    • getTile

      public Tile getTile(char letter)
    • put

      public void put(Tile t)
    • size

      public int size()
    • getBag

      public static Tile.Bag getBag()
      The getBag function is a static function that returns the Bag object.
      Returns:
      A reference to the object of type bag
    • getQuantities

      public int[] getQuantities()
      The getQuantities function returns a copy of the amount array.
      Returns:
      A clone of the amount array