This is not made very clear in Lesson 5, but in Unit 8 Lesson 2, the comment in the code given says "no matter how big the world". I've been attempting the lessons as well, and after many attempts I finally managed to get past said problem, but I "cheated" a little by using an 'if' statement, which I'm pretty sure isn't covered yet (I just finished Unit 8). Can someone please explain this, and, ideally, help me think through this without giving me the answer? If, however, I proceed and run the rest of the code, the 8x8 gets satisfied, but the 5x5 is suddenly no longer valid. If I run function step1(), the code executes, and the requirements for the 5x5 world are satisfied. Here is my code: //Make Karel fill the world Working through the Stanford Karel lessons right now, and have got stumped on this one
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |