Random Branch Tables not working as expected?

Random Branch Tables not working as expected?

by Joseph Rézeau -
Number of replies: 1
Picture of Core developers Picture of Plugin developers Picture of Testers Picture of Translators

Hi all Lesson users!

As a follow-up to this discussion, I decided to try introducing a random element in my "maze adventures" on my test site.

I first tried with "clusters" and quicly gave up. Then I thought Random Branch Tables would fit the bill, especially after I'd read this in the online Documentation:

Random Branch Table

This will jump to a random Branch Table between the current Branch Table and the End of Lesson or the next End of Branch.

Accordingly I created a very short maze/adventure including a random element between a Jump to Random branch table and an End of Branch page. It works up to a point. The problem is that the Jump to Random branch table does not just jump to branch tables located between the current Branch Table and the next End of Branch as described in the documentation but between the current Branch Table and the End of the Lesson. This ruins my plans.

For example, on the attached Lesson flow, you can have the following sequences:

01 02 03 01 02 04 05 06 (ok)

01 02 03 01 02 06 (not ok)

01 02 05 06 (not ok)

etc.

I'd be interested to hear of Lesson users who have found a way to use this "random" element as described above. In the meantime you are welcome to test that short adventure online - please try again and again as many times as you can in order to track the unwanted behavior described here.

Go to my moodle test site, login as student1, password Student1! go to course Demo. In topic 2 Mazes, try MoodleMoot Adventure 02.

Thanks!

Joseph

Attachment image00.jpg
Average of ratings: -
In reply to Joseph Rézeau

Re: Random Branch Tables not working as expected?

by Joseph Rézeau -
Picture of Core developers Picture of Plugin developers Picture of Testers Picture of Translators
There is indeed a bug in the Lesson module, which causes the unwanted behavior I have noted. I am working on a patch.
Joseph