Android Open Source - FindtheMines Position






From Project

Back to project page FindtheMines.

License

The source code is released under:

MIT License

If you think the Android project FindtheMines 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 findtheminecore;
//from   w ww . j  a  va  2 s .  c  om
public class Position {
  
  int pos[];
  
  public Position(int[] pos){
    this.pos = pos;
  }

  public Position(int row, int col) {
    this( new int[] {row,col});
  }  

  public Position(String string) {
    String[] strings = string.split("\\,");
    pos = new int[] {Integer.parseInt(strings[0]),Integer.parseInt(strings[1])};
  }

  public int getRow() {
    return pos[0];
  }

  public int getCol() {
    return pos[1];
  }
  
  @Override
  public String toString(){
    return Integer.toString(pos[0])+","+Integer.toString(pos[1]);
    
  }

}




Java Source Code List

com.stealthness.findthemines.ImageAdapter.java
com.stealthness.findthemines.MainActivity.java
com.stealthness.findthemines.SplashScreen.java
findtheminecore.BoardSize.java
findtheminecore.Board.java
findtheminecore.Game.java
findtheminecore.Position.java
findtheminecore.RuleSet.java
findtheminecore.TileType.java
findtheminecore.Tile.java