Back to project page FindtheMines.
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.
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; } }