Package pdp.scrabble.game

Examples of pdp.scrabble.game.Board.validate()


  }

  System.out.println("Clear board and validate it");
  board.clear();
  try {
      board.validate(true);
      System.out.println("Board check ignored, because no new letter added");
  }
  catch (BoardWrongWordPlace ex) {
      fail("BoardWrongWordPlace was not expected");
  }
View Full Code Here


  }

  System.out.println("Add new letter at 0, 0");
  board.setCaseLetter(0, 0, FACTORY.createLetter('A', 1, 0), true);
  try {
      board.validate(true);
      fail("BoardWrongWordPlace was expected");
  }
  catch (BoardWrongWordPlace ex) {
      System.out.println("BoardWrongWordPlace error, because center is not used");
  }
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.