Implementation of the tic-tac-toe sample.
Added some README.txt Change-Id: Ie2703ffdfdeba773d0fd27153ec0cdb806b2e2dc
This commit is contained in:
@@ -16,6 +16,7 @@
|
||||
package com.example.tictactoe;
|
||||
|
||||
import com.example.tictactoe.library.GameActivity;
|
||||
import com.example.tictactoe.library.GameView.State;
|
||||
|
||||
import android.app.Activity;
|
||||
import android.content.Intent;
|
||||
@@ -47,7 +48,8 @@ public class MainActivity extends Activity {
|
||||
|
||||
private void startGame(boolean startWithHuman) {
|
||||
Intent i = new Intent(this, GameActivity.class);
|
||||
i.putExtra(GameActivity.EXTRA_START_WITH_HUMAN, startWithHuman);
|
||||
i.putExtra(GameActivity.EXTRA_START_PLAYER,
|
||||
startWithHuman ? State.PLAYER1.getValue() : State.PLAYER2.getValue());
|
||||
startActivity(i);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user