-
Notifications
You must be signed in to change notification settings - Fork 7
Business Logic
Although not implemented as of v0.3, a score needs to be calculated for each game. The score will be based on the level of difficulty of the game and the number of questions answered.
The following are recommendations for implementing the business logic of the game:
Assuming that we have the following settings:
- Upper limit: The maximum value an operand can have.
- Lower limit: The minimum value an operand can have.
- Number of questions: How many questions need to be answered correctly to complete a stage.
- Multiple Choices: How many multiple choices should be displayed on each question.
- Closeness: How close to the right answer the wrong answers need to be. Percentage value.
The difficulty level increases as the upper limit, lower limit, number of questions, and multiples choices increase and the closeness decreases.
The greater operand needs to be on the left, and no questions should be repeated.
If possible, an operand should not be repeated in a future question.
The lower limit needs to be greater or equal to 0.
The upper limit should be different depending on the operation: 999 for addition, subtraction, and division, and 99 for multiplication.
For divisions, the multiple choices need to be rounded to the nearest hundredth.