Aalto-LeTech / JAAL

A data format for recording answers to JSAV exercises
0 stars 1 forks source link

jaal-dijkstra-student.json: initialState and clicks #13

Closed Meratyn closed 2 years ago

Meratyn commented 2 years ago

Fulfill #4 , #5 , and #7 .

jaal-dijkstra-student.json is a copy of jaal-dijkstra.json. The initialState is set to an undirected, weighted graph as per /spec/test/valid/figures/dijkstra-solution/initial.png. The animation is set as 3 click events for edges AB, AE, IN as per /spec/test/valid/figures/dijkstra-solution/student*.png.

The nodes and edges are set with the styles visited/unvisited (nodes) or selected/unselected (edges) as in /spec/test/valid/figures/dijkstra-solution/student03.png .

Add modelAnswer array of clicks as per /spec/test/valid/figures/dijkstra-solution/model*.png. Correct values in score as per the steps as above.

atilante commented 2 years ago

Manual review

Student's solution is correct.

Model solution steps: nodes edge0 AB edge1 AE edge7 EI edge8 EJ edge4 BF edge13 JN edge2 BC edge11 IM edge5 BG edge16 NO Yes, these are same edge clicks as in the model image sequence in spec/test/valid/figures/dijkstra-solution/model*.png.

TODO

atilante commented 2 years ago

Good work!