alexlostorto / magic-notes

Magic Notes - an extension to make learning on Sparx Maths more fun!
https://alexlostorto.github.io/magic-notes
MIT License
6 stars 4 forks source link

Algorithm confused on answer. #13

Open hosm1002 opened 1 year ago

hosm1002 commented 1 year ago

I was doing my sparx homework and the addon started acting weirdly image The image contains my first bookwork code of the day. I have no idea what could have caused this. However, When the next option/ bookwork code came out it got it correct.

alexlostorto commented 1 year ago

Yeah, the algorithm isn't perfect.

There are two algorithms that are used to detect similarity between the stored answer and the corresponding bookwork answer:

Purple border The purple line is shown if the entire stored answer (9) is inside the bookwork answer. The stored answer (9) is inside £1396, 9, 90, and £1397.

Orange border The orange line is shown if each number of the answer (in this case only 9) is inside the bookwork answer. Since there is only one number in the stored answer, the output is the same for both algorithms.