Regex Game: Only update highscore when score > highscore (u.regex-game-3)¶
Version: V1.1, 09.08.2022, Improve format, merge with score <= highscore does not update highscore test
Author: Leon Layer, Leon Hofmeister
Description¶
Tests that the highscore doesn’t change when score <= highscore.
Precondition¶
The highscore is >= 2. The game has at least three regexes. The current score is 0.
Postcondition¶
The highscore has value 3.
Typical procedure¶
Select a correct answer
The current score changes to
1The high score does not change
Select a correct answer
The current score changes to
2The high score does not change
Select a correct answer
The current score changes to
3The high score changes to
3Answer all further questions incorrectly
The backend (if present) gets updated with the game results including all correctly answered regexes, all incorrectly answered regexes, and the current score as well as the high score
Alternative procedures¶
2.1. We don’t increase by factor 1 - multiply all numbers in this test by this factor
10.1. Wrong answers give a penalty instead of no reward - answer the questions correctly, and update the highscore accordingly
11.1. No backend present - No-op
Criticality¶
Low