I found the assignments this time around much easier, probably because my group and I tackled them long before the due date and so could spend more time working on the code instead of one long session the day before. I particularly found the contrast problem interesting just because I was stumped for so long, especially on the z trigger function.
All of the other parts of the code that required changing was fairly simple with most of them simply being check expects with similar structure as other parts of the code. The question answer lines for the key press functions also had very similar structures to the code provided so it was mostly easy to figure out, however the z function was something that I had to understand and write myself. It was because the other lines of code were so similar that I didn't really bother learning what each line meant and simply copied the syntax of the code provided and just applied it to whatever colour needed changing and this is why I was stumped for so long on the z function since it performed a completely different function than the other key presses. It was only by spending time and learning about what each line of code did and what each part of the imgpair structure was coded that I could figure out what I was doing wrong and how to make the z key revert back to the original image. Once I knew what each line of code did, making the program do what I wanted wasn't difficult at all!