Today we had pyret draw state diagrams for us! I wasn’t sure if I was supposed to do a design recipe or not – since so much was filled in on the starter code, and decided against it… maybe I should have, but I think we needed a different one. But anyway, it worked pretty well! I pretty much just let them go at it. It was clear we were struggling with what goes in the contract, but then most worked it out – they wanted to write a whole bunch of stuff that were not data types.
They sort of had a hard time understanding what to do …. but I didn’t want to just tell them and explain it. They took a bit of time, but then most of them got it, and then I sent them around to help others. Seems like the big problem is that they do not understand the function input is what is in the parentheses, and then that input (x placement in this case) is plugged into the function. I don’t blame, them, I feel like this is where I struggled a bit later, but kind of the same problem. But I let them work it out, reminded them they might be frustrated and it is ok, and not to give up! Some pairs were quick and did the x and y placement! Also, I made sticks with their names and I have been randomly pulling coding pairs and I think they have enjoyed getting new partners often, now that we sort of know what we are doing.
Giving a quiz on pyret stuff next class, so we will see how it is going!
We had about 25 minutes left, not quite long enough to do the post-it discussion, but too long to continue state diagrams. I had them open up the old jamboard of the flipbooks of the stations, and asked them to write ONE condition on each post-it, by looking at two or three of the states they had drawn. They had trouble with this, which I expected because when we did it at the workshop, I didn’t quite get it at first. They wanted to put things like “still on the table” – so I tried to help them see that was two things, to separate.
We only had a few minutes left but I had them try to sort the post-its into similar one. Across 2 blocks, there were 4 groups – only one kind of was lost here. I had to collect up and organize the notes so we can continue next time, which was a touch challenging! Still hoping to wrap this discussion and do bar graphs next time!