Small Basic – Traffic Light Challenge


One of this month's forum challenges was to create a traffic light system.

Graphics Challenge 2

Draw a traffic light that changes through the correct lighting sequence, perhaps using the Timer object.

We have 2 great answers in, the first by Martin from Germany.

And the second by NaochanOn from Japan which uses different coloured lights.

You can view them in action (as well as see the source code) using SIlverLight with the following links:

http://smallbasic.com/smallbasic.com/program/?MNZ607

http://smallbasic.com/smallbasic.com/program/?KZP715

Note that you can host any of your Small Basic programs online in this way after it is published and you have the 6 character ID.

Comments (4)

  1. Very cool! I was also marveling at these solutions, and how quickly Martin and NaochanON developed them!

  2. It's also a nice showcase of our international collaborations! Seeing how I'm in Redmond, USA, LitDev's in UK, and these contributions are in Germany and Japan!

  3. litdev says:

    And another clever one by electroluis:

    smallbasic.com/…/program

Skip to main content