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; /* ww w. j a va 2 s . 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 HardExerciseStrategy implements ExerciseStrategy { private final Calculations problemGenerator; public HardExerciseStrategy() { this.problemGenerator = new Calculations(Difficulty.Hard); } @Override public Term nextProblem(int round) { Term problem = problemGenerator.getProblem(); int hardenSteps = round / 5; for(int i = 0; i < hardenSteps; i++) { problemGenerator.hardenProblem(problem); } return problem; } }