Package nl.nuggit.words.board

Examples of nl.nuggit.words.board.Tray


    Board board = BoardFactory.createStandardBoard();
    setupBoard(board, language);
    System.out.println(board);

    Tray tray = new Tray("morlend", 7, language);

    bag.remove(board.getTiles());
    bag.remove(tray.getTiles());
    System.out.println(bag);

    Player player = new Player("adriaan", board, tray, language);
    player.suggestWords();
  }
View Full Code Here


    String letters = "ehoiopqvwwwy";
    int wordlength = 3;

    Language language = Language.drawsome();
    Board board = new Board(wordlength);
    Tray tray1 = new Tray(letters, 12, language);
    Player player1 = new Player("p1", board, tray1, language);
    List<Word> words = player1.suggestWords();
    for (Word word : words) {
      if (word.size() == wordlength) {
        System.out.println(word);
View Full Code Here

    }
    return bestCounterScore;
  }

  public void addPlayer(String name, boolean cpuControlled) {
    Tray tray = new Tray(TRAY_SIZE);
    bag.fillTray(tray);
    players.add(new Player(name, board, tray, language, cpuControlled));
  }
View Full Code Here

TOP

Related Classes of nl.nuggit.words.board.Tray

Copyright © 2018 www.massapicom. 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.