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 }
private void initPlayers(IAutoPlayer compPlayer) { computerPlayer = compPlayer; computerPlayer.setView(computerArea); humanPlayer = new HumanPlayer("Human"); humanPlayer.setView(humanArea); }