Back to project page MentalMathX.
The source code is released under:
GNU General Public License
If you think the Android project MentalMathX 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 net.schlingel.bplaced.mentalmathx.game.strategy; //from w w w.ja va 2s. c o m import net.schlingel.bplaced.mentalmathx.game.Difficulty; import net.schlingel.bplaced.mentalmathx.math.Calculations; import net.schlingel.bplaced.mentalmathx.math.Term; /** * Created by zombie on 29.06.14. */ public class EasyExerciseStrategy implements ExerciseStrategy { private final Calculations problemGenerator; public EasyExerciseStrategy() { problemGenerator = new Calculations(Difficulty.Easy); } @Override public Term nextProblem(int round) { Term problem = problemGenerator.getProblem(); int hardenSteps = round / 10; for(int i = 0; i < hardenSteps; i++) { problemGenerator.hardenProblem(problem); } return problem; } }