I'm apart of a research group for the University of Florida and I'm apart of a research group researching how kids learn coding. One of the things that we're trying to implement is a replay functionality for students who go through the coding challenge using a Blockly workspace. So the software is as follows:
- Student works through Blockly workspace and implements challenge
- They have undo and redo capabilities throughout
- We have saving capabilities that capture the XML for progress over time.
We can load a save from their prior XML, but the undo and redo stacks aren't preserved on XML load. If I had those I could do a timeout to walkthrough step by step what the students tried for the challenge to see their thought process.
I tried stringifying and saving the stack to try to reinitialize it in the window.Blockly object directly but that doesn't work. Anyone try to do something similar? My next plan of attack is to just save each xml and use it to reconstruct the coding process the student did, but that seems messy. I appreciate any help!