Older construction now not working properly

xtzetzias shared this question 7 months ago
Answered

Hi,

I've made a construction last year which i tested several times and found it working as expected. 2 weeks ago I tested it again, to find that there is a partial malfunction. Nothing was changed in the construnction, so I think there is something changed in GeoGebra.

You can find the Construnction here. It works as follow: When you press the upper button, a new motive shows, which you have to reproduce by picking the correct colour (by clicking on the points n the left) and "paint" the cyrcles (by clicking on them). When you finish, you can press the other button to see if you manged it.

The check was successful till now. However, it seems to fail sometimes. I tried to reproduce the construction and found that the problem is in the upper button's code. When you press it, it is supposed to colour the first circles according to the rundomised motive. However it sometimes paints one or more circle with wrong colour (not the one in the motive) so the user sees a wrong motive, which, even if he reproduce correctly, fails the check (which is made comparing to the list "Μοτίβο").

Any help appreciated.

Comments (6)

photo
1

Sorry, I can't see any difference with the current version or an old version.

Maybe add a dynamic text to help debugging:

> "Μοτίβο = "+Μοτίβο

photo
1
photo
1

Ηι, Michael,


thanks for the answer.


Do you mean that the problem occurs in older versions as well? I'm sure i tested it many times, as well as other people.

Have you seen the upper buttons code? Does it work as it should (then there is a mistake in the code)?

Take a look here. The colours of the list Μοτιβα shoyld correspond to the coloured circles.

I try it now and it seems that the 3rd,4rth and 5th circle (if motive's length is 3,4 or 5) are coloured with the second's circle colour. The problem appears when the 4rth command of the button is executed.


Hi mathmagic,

it seems that in my constuction the problem is related to the spreadsheet too.

photo
1

Thanks, I can see the problem now. We'll check soon!

photo
1

Hi,

I think there was a scanning algorithm that stopped working when Geogebra going to HTML5

... I got an answer to this question 4 years ago

https://help.geogebra.org/topic/bug-action-javascript-in-case-html5

„Sorry, that's expected (difficult to explain why).

If you make 'mx' a slider and animate it then it will work as you want.“

I rewrote the algorithm in

https://www.geogebra.org/ma...

photo
1

I think the problem does not show any more. Thanks!

photo
© 2019 International GeoGebra Institute