Android Open Source - Tic-Tac-Toe Tuple






From Project

Back to project page Tic-Tac-Toe.

License

The source code is released under:

MIT License

If you think the Android project Tic-Tac-Toe listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.

Java Source Code

package com.comp1008.AmmanVedi.TicTacToe;
/*from  ww w  .  j  a va 2 s .co m*/
public class Tuple {

  private int PlayerValue;
  private int SectorValue;

  public Tuple(int s, int i)
  {
    this.PlayerValue = s;
    this.SectorValue = i;
  }

  public void resetTuple()
  {
    this.PlayerValue = -1;
    this.SectorValue = -1;
  }

  public int getPlayerValue()
  {
    return this.PlayerValue;
  }

  public int getSectorValue(){
    return this.SectorValue;
  }

  public void setTuple(int x, int sec)
  {
    this.PlayerValue = x;
    this.SectorValue = sec;
  }

}




Java Source Code List

com.comp1008.AmmanVedi.TicTacToe.AIDrawView.java
com.comp1008.AmmanVedi.TicTacToe.AIPlayer.java
com.comp1008.AmmanVedi.TicTacToe.DifficultySelect.java
com.comp1008.AmmanVedi.TicTacToe.DrawView.java
com.comp1008.AmmanVedi.TicTacToe.GameState.java
com.comp1008.AmmanVedi.TicTacToe.HighScores.java
com.comp1008.AmmanVedi.TicTacToe.SplashScreen.java
com.comp1008.AmmanVedi.TicTacToe.TicTacToeActivity.java
com.comp1008.AmmanVedi.TicTacToe.Tuple.java