Different card distribution after Undo-Redo sequence in the Gaps card game, Aisleriot
Submitted by Vytas
Link to original bug (#339486)
Description
Please describe the problem: In the gaps card game, you need to redeal when all gaps are "dead". The redeal process collects the unsequenced cards and puts them randomly. After doing undo-redo, this random distribution is different then it was before. Although it might help to win, I guess it is not the expected behaviour, cause the games are "replayable", that means everything must be the same, even if you restart the game, or undo-redo the steps.
Steps to reproduce:
- Play Gaps game in aisleriot
- Play till all the gaps are "dead" and redeal. Remember some cards after redeal
- Use undo-redo
Actual results: The cards are now distributed differently.
Expected results: They should be distributed using the same random seed.
Does this happen every time? Yes.
Other information: IMHO the game should get random seed at the beginning and it should be used for the following redeals.
Version: pre-3.0