Examples of wordFactor()


Examples of nl.nuggit.words.board.Booster.wordFactor()

          word.getTiles().add(new Tile(letter));
          Booster booster = square.getBooster();
          letterValue = letter.getValue();
          if (booster != null) {
            letterValue = letterValue * booster.letterFactor();
            wordFactor = wordFactor * booster.wordFactor();
          }
        } else if (trayCopy.remove(Language.BLANK)) {
          // we place a blank tile
          tilesTakenFromTray++;
          word.getTiles().add(new Tile(new AppliedBlank(letter)));
View Full Code Here

Examples of nl.nuggit.words.board.Booster.wordFactor()

      letterValue = letterValue * booster.letterFactor();
    }
    score += letterValue;

    if (booster != null) {
      score = score * booster.wordFactor();
    }
    String crossWord = sb.toString();
    boolean crossWordExists = language.getWords().contains(crossWord);
    if (crossWordExists) {
      word.setScore(word.getScore() + score);
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.