Fixed bug where both difficulties had the same final result

This commit is contained in:
Simon Cambier 2024-01-31 13:05:30 +01:00
parent 56b7218b80
commit a573aef9e3

View File

@ -193,6 +193,11 @@ function selectOperator(o: OperatorType): void {
function reboot(): void { function reboot(): void {
gameState.value = GameStateType.Playing gameState.value = GameStateType.Playing
if (gameDifficulty.value === GameDifficultyType.Hard) {
// Run an empty rand() call to make sure that both Normal and Hard have different expected results
random()
}
const minValue = 101 const minValue = 101
const numPlaquettes = isHardMode.value || isPracticeMode.value ? 6 : 5 const numPlaquettes = isHardMode.value || isPracticeMode.value ? 6 : 5
do { do {