Advertisement
Guest User

Untitled

a guest
Dec 9th, 2019
138
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.46 KB | None | 0 0
  1. if(play.dir() == Direction.DOWN) {
  2.             for(int d=0; d<numerizedLetterPositions.length; d++) {
  3.                 System.out.println("cell =" + board.getNumericalCell(currentCell[0], currentCell[1]).replaceAll("\\s","") + "xxx");
  4.                 if(board.getNumericalCell(currentCell[0], currentCell[1]).replaceAll("\\s","") == "·") {
  5.                     System.out.println("FOUND A +");
  6.                     letterScores[d] = letterScores[d] * 2;
  7.                 }
  8.                 currentCell[1] += 1;
  9.                 playScore += letterScores[d];
  10.             }
  11.         }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement