Saturday, June 21, 2014

Shabbat, 21 June 2014

I slept okay last night but woke up very late and so didn't go out for a walk at all.

I continued working on my Principle of Computing project, a simulation of the Cookie Clicker game, today. I got the code working quite easily and nicely, but I was having trouble with the tester they provide because it kept timing out. When I ran my program, it actually ran quite quickly, but their tester somehow seemed to keep getting stuck, perhaps in some infinite, or at least excessively long running, loop. Finally, I put in a counter in my main loop that limits the number of times it can execute. I set the max number to one bigger than it was ever actually doing in my cases, and that seems to have fixed the problem with their tester, too. So, I eventually submitted it to the grader and got 100% for the project!

We ate lunch at Landwer Café today. David had their shakshuka, which he didn't particularly like, and I had their breakfast, which was great.

No comments:

Post a Comment