![]() Duh.Free Download Lightbot : Code Hour for PC using the guide at BrowserCam. It's real obvious that you can write a subroutine to "walk along the wall, then climb the stairs" and use it twice. Once I realized this, the solution given above took about two minutes. So, how to solve it? What I finally realized was, after you hit the left switch, you can jump down and end up right back where you started. If anyone discovers a way to complete level 10 that turns on the right switch first, I'd be very interested to see it. You run out of instruction slots every time. There are just too many movements, especially turns, involved in hitting the right switch and then getting back to the stairs. Needless to say, I don't believe it's possible to complete the level this way. Even cleverly inserting instructions into the subroutines that acted as no-ops (like jumping when you're not at a step) didn't make it work. And that one occured only twice, for a total savings of 6 instructions - nowhere near enough. ![]() And there were no common subsequences longer than 4 characters. Full instructions for the level was a string about 35 characters long, far more than the 26 slots available. That means go forward 3 times (FFF), jump up onto the first step (J), turn left to face the other steps (L), then jump twice more to get to the top (JJ). For instance, the first part of level 10 is: FFFJLJJ. I even went so far as to assign a letter to each instruction (Forward, Left, Right, Jump, On) and create strings representing different parts of the level. So that one will have to be done last." Then I spent about half an hour hitting my head, trying to find some way to turn on the right switch, yet still have enough instructions available afterwards to get all the way back to the left one. When I looked at this level, I said to myself: "You can't jump back up and over the two-block barrier after you turn on the light to the left side. It's funny how preconceptions can hurt you. However, level 10 threw me for a loop in a big way. Most of the levels are quite easy, with only 10, 11 and 12 being even a bit challenging. ![]() So you're forced to use the subroutines to automate repeated tasks, instead of writing them out longhand. The other challenge is that in the later levels, the number of instructions slots available is less than the total number of moves required to solve the level. ![]() It's a little more interesting than that though, because it's 3D (there are blocks stacked up that you have to jump up and down on) and there are blue squares/switches/lights that you have to activate. This is basically like LOGO with a robot. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. Archives
December 2022
Categories |