Light-Bot: Putting the Fun in Functions

Posted by Jetlogs @ 2:54 pm
Category: Video Games

Do you think your logical skills are still as sharp as ever? Then you should try to play the game of Light-Bot. Although it is a simple flash game, the rules are very familiar to all of us:

Enter the commands, and the robot will follow the instructions. The objective is simple: light up all the blue tiles.

It seems pretty simple, until you find out that there is a maximum limit on the number of commands available on the main program…

But don’t fret, the game has 2 additional command slots for using functions! Now there is where our cunning comes in: How do we finish the task without going over the maximum number of commands on the main program?

Although this game will be easy for programmers, this provides a very fun distraction and constrast to our day to day work.

You can play the game here

Although this is more of an exercise on logic, a lot of the problems are reflective of what developers encounter on a day-to-day basis. Even one of the problems was solved when I thought about the difference of linebreaks in notepad (“\n” vs “\r\n”). Its up for you to find out when the parallel happens.


  • Archives

  • Donations

  • Social Bookmarks

  • Jetlogs.org
    Some Rights Reserved 2007
    Creative Commons License