protected void performCpuMove() { gameView.performCpuMove(); }
protected void setGameViewClickable(final boolean state) { if (gameView != null) { gameView.setClickable(state); } }
protected TicTacToeGame.Player getOpponentForPlayer(TicTacToeGame.Player player) { Preconditions.checkNotNull(player); return gameView.getOpponentForPlayer(player); }
protected void performRandomMove(TicTacToePoint point) { gameView.performFirstRandomMove(point); }
@Override public void onPlayerTurn(TicTacToeGame.Player player) { turnEntry.setValueText(player.name()); gameView.setTurn(player); }
private void setUpViews() { gameView.setOnGameStateChangeListener(this); }