Back to project page SeniorDesign.
The source code is released under:
GNU General Public License
If you think the Android project SeniorDesign 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 fakesetgame.seniordesign.model; /*from ww w . j a va 2 s .com*/ /** * An enumeration of scoring modifiers used in calculating game difficulty. */ public enum Modifier { COUNT_DIFFERENCE(1.1), COLOR_DIFFERENCE(1.45), SHADING_DIFFERENCE(1.65), SHAPE_DIFFERENCE(1.9); private double modValue; private Modifier(final double modValue) {this.modValue = modValue;} public double getValue() {return modValue;} public static double minModifier = 1; public static double maxModifier = COUNT_DIFFERENCE.modValue * COLOR_DIFFERENCE.modValue * SHADING_DIFFERENCE.modValue * SHAPE_DIFFERENCE.modValue; }