Examples of letterFactor()


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

          tilesTakenFromTray++;
          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++;
View Full Code Here

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

    // count the new tile, possibly with booster
    int letterValue = newTile.getLetter().getValue();
    Booster booster = line.getSquares()[position + wordIndex].getBooster();
    if (booster != null) {
      letterValue = letterValue * booster.letterFactor();
    }
    score += letterValue;

    if (booster != null) {
      score = score * booster.wordFactor();
 
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.