Beispiel #1
0
 public void showWord(String word, java.util.List<BoardCell> letterLocations, IPlayer player) {
   myWordList.add(word);
   scoreText.setText(player.getScore() + "");
   scoreText.paintImmediately(scoreText.getVisibleRect());
   myWordList.paintImmediately(myWordList.getVisibleRect());
   // myBoardPanel.highlightDice(letterLocations);
   wordEntryField.clear(); // clear the wordEntryField text
 }
Beispiel #2
0
 private void initPlayers(IAutoPlayer compPlayer) {
   computerPlayer = compPlayer;
   computerPlayer.setView(computerArea);
   humanPlayer = new HumanPlayer("Human");
   humanPlayer.setView(humanArea);
 }