Bug 452255

Summary: 'Logical associations' game: interrupting a level inherits level progress to new level
Product: [Applications] gcompris Reporter: Øystein Steffensen-Alværvik <epost.kde>
Component: generalAssignee: Jazeix Johnny <jazeix>
Status: RESOLVED FIXED    
Severity: normal    
Priority: NOR    
Version First Reported In: unspecified   
Target Milestone: ---   
Platform: Flatpak   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:
Attachments: Level that was interrupted
Level that I skipped to after interrupting the previous level

Description Øystein Steffensen-Alværvik 2022-04-04 08:59:40 UTC
Created attachment 147951 [details]
Level that was interrupted

SUMMARY
***
In the game 'Logical associations', interrupting a level (i.e. only partially finishing it) and then skipping to a different level causes the level the player skipped to to 'inherit' the progress from the interrupted level. Please see screenshots.
***


STEPS TO REPRODUCE
1. Start the game 'Logical associations'
2. Select 1-3 of the correct fruits (i.e. don't finish the level)
3. Skip to a different level
4. Try to select the correct fruit in the new level
5. Observe that you can't
6. Select all the other fruits until a fruit is displayed on the first line
6. Observe the misplacement

SOFTWARE/OS VERSIONS
Fedora KDE
GCompris 2.3 – flatpak version from Flathub
Comment 1 Øystein Steffensen-Alværvik 2022-04-04 09:00:34 UTC
Created attachment 147952 [details]
Level that I skipped to after interrupting the previous level
Comment 2 Jazeix Johnny 2022-04-04 09:37:35 UTC
Hi,

thank you for the report.
I can reproduce. I'll take a look tonight if nobody beats me. It seems an issue with the index not being correctly reseted.

Cheers
Comment 3 animtim 2022-04-04 10:13:27 UTC
Git commit 61af173d1ed35bc769ca840d78cd6d003b96464d by Timothée Giet.
Committed on 04/04/2022 at 10:10.
Pushed by timotheegiet into branch 'master'.

algorithm, fix choiceCount not reset on level changed manually

move choiceCount reset in setUp function which is always called
when loading new level or sublevel.

M  +2    -1    src/activities/algorithm/algorithm.js

https://invent.kde.org/education/gcompris/commit/61af173d1ed35bc769ca840d78cd6d003b96464d