Examples of BagConfiguration


Examples of pdp.scrabble.game.BagConfiguration

  public void fill() {
    Iterator<BagConfiguration> itr = this.configuration.iterator();

    int id = 0;
    while (itr.hasNext()) {
      BagConfiguration current = itr.next();

      String name = current.getName();
      int value = current.getValue();
      int number = current.getNumber();

      for (int i = 0; i < number; i++) {
        this.addLetter(FACTORY.createLetter(name.charAt(0), value, id));
        id++;
      }
View Full Code Here

Examples of pdp.scrabble.game.BagConfiguration

  public int getLetterValue(String letter) {
    Iterator<BagConfiguration> itr = this.configuration.iterator();

    while (itr.hasNext()) {
      BagConfiguration current = itr.next();
      String name = current.getName();
      int value = current.getValue();

      if (letter.equals(name)) {
        return value;
      }
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.