Implementation of the tic-tac-toe sample.

Added some README.txt

Change-Id: Ie2703ffdfdeba773d0fd27153ec0cdb806b2e2dc
This commit is contained in:
Raphael
2010-04-02 22:05:14 -07:00
parent 718a35143d
commit b8a884fbab
13 changed files with 697 additions and 58 deletions

View File

@@ -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);
}
}