Example #1
0
 /**
  * Returns the score of the TttBoard stored in this TttNode.
  *
  * @return The score of the TttBoard based on the currentPlayer of the Board.
  */
 public int getScore() {
   return data.getValue();
 }
Example #2
0
 /**
  * Sets the value of the board layout.
  *
  * @param theScore The value of the Board for the current player of the Board.
  */
 public void setScore(int theScore) {
   data.setValue(theScore);
 }