Android Open Source - FindtheMines Rule Set






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;
//  www .ja  va  2  s.c  om
public enum RuleSet {
  STANDARD ("Standard"),
  HARD("Hard"),
  TRAFFICLIGHTS("Traffic lights"),
  TEST("Test mode cheet style");
  
  private String string;
  
  private RuleSet(String string){
    this.string = string;
  }
  
  @Override
  public String toString(){
    return string;  
  }

  public static RuleSet get(String rules) {
    if (rules.equals("standard")){
      return RuleSet.STANDARD;
    } else if (rules.equals("hard")){
      return RuleSet.HARD;
    }else if (rules.equals("cheat")){
      return RuleSet.TEST;
    }else if (rules.equals("trafficlights")){
      return RuleSet.TRAFFICLIGHTS;
    }
    return null;
  }
  
  
}




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