Challenge of the Month - September 2014 RRS feed

  • General discussion

  • These challenges are intended for people who are learning to program for the first time or for those returning to programming who want to start using Small Basic. Some will be easy, some will be hard - but they will all make you think, and more importantly be GREAT FUN!

    Please post your solutions / partial solutions / questions / feedback etc. into this thread that will remain 'sticky' for the month. The only rule is that your solution must use standard Small Basic methods (no extensions).

    It would be good if people could post their problems with these challenges so that a discussion can start so that everyone can learn from each other.

    Also post feedback on the kind of challenges that you want to see more of in the future.

    Big Challenge

    Text Challenge

    • Write a program to read and write an array of Small Basic data to and from a csv file.

    Variable Type Challenge

    • Write a program that checks a Small Basic variable and determines if it is an array or not:
    • If it is an array, then the number of elements is reported
    • If it is not an array, then it is checked to see if it is a number or not
    • If it is a number, then it is determined if it is positive or negative and if it is an integer or decimal number

    Graphics Challenge 1

    Draw a flower.

    Graphics Challenge 2

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

    Game Challenge

    Write a simple stick mad fighting game.  see some recent posts for some ideas on this.

    Community Suggestions (by Nonki)

    • Write a program to find an absolute path from an input relative path.  While it is assumed that the current path is Program.Directory.

    For example, if the current directory is "C:\Users\Nonki\Documents",

    Input ".." → Output "C:\Users\Nonki"
    Input "test" → Output C:\Users\Nonki\Documents\test"

    • Draw (or fill) a Trapezoid.
    • Make a kitchen timer.

    Do you have an idea for a future challenge? Please post it here!

    Monday, September 1, 2014 6:07 PM

All replies