コード例 #1
0
 @Override
 public void onOWin() {
   gameStateEntry.setValueText(getString(R.string.o_wins));
   getContract().notifyGameFinished();
 }
コード例 #2
0
 @Override
 public void onDraw() {
   gameStateEntry.setValueText(getString(R.string.draw));
   getContract().notifyGameFinished();
 }
コード例 #3
0
 @Override
 public void onPlayerTurn(TicTacToeGame.Player player) {
   turnEntry.setValueText(player.name());
   gameView.setTurn(player);
 }